2

When process html with template engin, we may get a large file which contains useless white spaces everywhere. To minimized the spaces the engin processed is an important thing to do to accelerate the transform speed. There are two kinds of spaces which can be minimized . One is between the tags. Anther one is between the attribute gaps. The first one seems to be easy to remove(AbstraceTextProcessor). The latter one seems hard to process. I wrote a processor but seem too inefficient.

SpacesDialect

AttributesInnerWhitespacesProcessorEmptyTextProcessor

Any alternative ideas?

1 Answer 1

2

Thymeleaf doesn't want to add it in their core.. instead it was added in ecosystem.. check out https://github.com/connect-group/thymeleaf-extras

1
  • It seems to be excellent If I'm working with thymeleaf 2.x. Thanks for the link. But I guess I don't need it now.
    – martian
    Commented Aug 19, 2016 at 10:03

Not the answer you're looking for? Browse other questions tagged or ask your own question.