My template do not see objects, passed from Spring.
My code:
public class PublicModelAndView extends ModelAndView {
@Autowired
TemplateModul
That can be done in Thymeleaf in two ways:
First is to use special for Thymeleaf:
SOME TITLE
And the second way is:
SOME TITLE
[["${CSSProcessor.setDebugCaller("Public")}"]]
[["${CSSProcessor.setSiteRegion("public")}"]]
[["${CSSProcessor.addCSS("/css/main.css")}"]]
For natural template processing second option is more preferable. More info about inlining can be found here: http://www.thymeleaf.org/doc/tutorials/2.1/usingthymeleaf.html#inlining