Thymeleaf Layout Dialect JS
In-browser version of the Thymeleaf Layout Dialect, used for static prototyping.
Many front-end development projects these days use a mock server for rapid
development of static assets, eg: webpack dev server, or Express.js. This
project currently works using those mock servers as you can't retrieve other
resources (ie: your layout templates) using the
This project is available via Bower and can be installed with the following command from a directory within your own project:
bower install thymeleaf-layout-dialect --save-dev
With those in place, add the following script line somewhere in your template,
<script src="(path-to-thymeleaf-layout-dialect-js)/thymeleaf-layout-dialect.js" th:remove="all"></script>
th:remove directive is there so that when your template is processed for
real by your app server, Thymeleaf will remove this line.