+ <!--
+ Main definition that uses layout.html to put title and content attributes from
+ Thymeleaf fragments; {1} will be evaluated to either 'list', 'form' or 'view'.
+ -->
+ <definition name="*" template="templates/layout">
+ <put-attribute name="title" value="title/{1}"/>
+ <put-attribute name="content" value="content/{1}"/>
+ </definition>
+
+ <!--
+ Fragments that are included by messages/* definition above;
+ 'template' attribute is a template file stored in /WEB-INF/views/message folder;
+ {1} will be evaluated to either 'list', 'form' or 'view'.
+ -->
+ <definition name="title/*" template="views/{1} :: title"/>
+ <definition name="content/*" template="views/{1} :: content"/>
+