A simple test follows:
Hello, world!Message exists!
Test normal includes:
A test of included files:
Message exists!:
Hello, world!
Test unparsed includes:
A test of included files:
<#if .globals.message?exists>Message exists!:
${.globals.message}
No message :(
#if> <#assign foo="assigning from included template", bar=" Can you see me? "> <#macro twice><#nested/>${bar}<#nested/>#macro> <#include "nestedinclude.ftl"> Kilroy Can you see me? KilroyTest subdir includes:
This is test-include-subdir.html
Testing including from same directory
This is test-include-subdir2.html
Testing including from relative parent
A test of included files:
Message exists!:
Hello, world!
Testing including from loader root
A test of included files:
Message exists!:
Hello, world!
Testing including through acquisition
This is test-include-subdir2.html