Magnolia 5.4 reached end of life on November 15, 2018. This branch is no longer supported, see End-of-life policy.
A template script is a mixture of:
TemplatingFunctionsand other convenience helpers
At Magnolia, we prefer FreeMarker for its flexibility, clean syntax and practical error reporting.
Magnolia 5.4 includes FreeMarker version 2.3.21. You can use the
.version special variable in a template to check this.
If you are not familiar with FreeMarker, these links will get you started:
?bits that follow expressions and provide useful functionality.
[#blocks]of code which are similar to JSP tags.
For further information about how to use Freemarker in the Magnolia context, also read: