ThymeleafGerrit Meier@JavaForumNord 2016EineTemplate-Engine fürEntwickler undDesignerhttps://www.flickr.com/photos/agenturblog/441242660/
View Slide
ähm..hä?…vielleicht doch nicht nur?!
Senior Consultant T-Systems on site services GmbHJUG Ostfalen Co-OrganisatorPodcastmeistermeier
Gibt es da nicht schon etwas?
JSP, Tiles, FreeMarker, Velocity…
static view
Geht das denn nicht irgendwie besser?
Thymeleafhttps://commons.wikimedia.org/wiki/File:Arenaria_serpyllifolia_(8490448608).jpg
Natural templates
https://www.flickr.com/photos/freespiritart/6379007221Expressions
Variables${…}
Messages#{…}
‚Selected object‘*{…}
URL-Expressions@{…}
Loops
Placeholder
web app view
Processorshttps://www.flickr.com/photos/fransdewit/15849351119
Processorsth:*th:th:attr=“value=#{message.attrValue}“
Processorsth:*th:if, th:unless, th:switch, th:caseth:eachth:insert, th:include, th:replaceth:text, th:utextth:…
Processorsth:block
Processors - web app viewth:block
Processors - static viewth:block
Prototype-only comment blocks
Prototype-only comment blocksweb app view
Prototype-only comment blocksstatic view
Fragmentshttps://www.flickr.com/photos/jhritz/409083204
Fragmentsheader.html
Fragmentsindex.html
Fragments - web app viewth:replace
Fragments - web app viewth:insert
Fragments - web app viewth:include
Utility Objectshttps://www.flickr.com/photos/darkthirty/49673752
Utility Objects(Expression Utility Objects)Lists, Dates, Strings, …
Utility Objects(Lists)
Utility Objects(Dates)
Utility Objects(Strings)
Utility Objects(misc)
? Fragen ?https://www.flickr.com/photos/visualanthology/13074410454
meistermeier