Thymeleaf - Eine Template-Engine für Entwickler und Designer

Thymeleaf - Eine Template-Engine für Entwickler und Designer

34ecacd077244d141a23c46ea094df5c?s=128

Gerrit Meier

October 20, 2016
Tweet

Transcript

  1. Thymeleaf Gerrit Meier@JavaForumNord 2016 Eine Template-Engine für Entwickler und Designer

    https://www.flickr.com/photos/agenturblog/441242660/
  2. None
  3. None
  4. ähm..hä? …vielleicht doch nicht nur?!

  5. Senior Consultant
 T-Systems on site services GmbH JUG Ostfalen Co-Organisator

    Podcast meistermeier
  6. Gibt es da nicht schon etwas?

  7. JSP, Tiles, FreeMarker, Velocity…

  8. JSP, Tiles, FreeMarker, Velocity…

  9. None
  10. static view

  11. Geht das denn nicht irgendwie besser?

  12. Thymeleaf https://commons.wikimedia.org/wiki/File:Arenaria_serpyllifolia_(8490448608).jpg

  13. Natural templates

  14. None
  15. static view

  16. https://www.flickr.com/photos/freespiritart/6379007221 Expressions

  17. Variables ${…}

  18. Messages #{…}

  19. ‚Selected object‘ *{…}

  20. URL-Expressions @{…}

  21. Loops

  22. Placeholder

  23. Placeholder

  24. static view

  25. web app view

  26. Processors https://www.flickr.com/photos/fransdewit/15849351119

  27. Processors th:* th:<html-attribute> th:attr=“value=#{message.attrValue}“

  28. Processors th:* th:if, th:unless, th:switch, th:case th:each th:insert, th:include, th:replace

    th:text, th:utext th:…
  29. Processors th:block

  30. Processors - web app view th:block

  31. Processors - static view th:block

  32. Prototype-only comment blocks <!--/*/ … /*/-->

  33. Prototype-only comment blocks web app view

  34. Prototype-only comment blocks static view

  35. Fragments https://www.flickr.com/photos/jhritz/409083204

  36. Fragments header.html

  37. Fragments index.html

  38. Fragments - web app view th:replace

  39. Fragments - web app view th:insert

  40. Fragments - web app view th:include

  41. Utility Objects https://www.flickr.com/photos/darkthirty/49673752

  42. Utility Objects (Expression Utility Objects) Lists, Dates, Strings, …

  43. Utility Objects (Lists)

  44. Utility Objects (Dates)

  45. Utility Objects (Strings)

  46. Utility Objects (misc)

  47. ? Fragen ? https://www.flickr.com/photos/visualanthology/13074410454

  48. meistermeier