However, a custom TemplateLoader could load all matching templates from a directory and "concatenate" them into the same Reader. Then the problem will be with caching; you you later only want to include a template form the same directory, it will be loaded again.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
is it possible to include all files in a folder by using an asterisk or similar?
I'm thinking of sth. like <#include "snippets/*.ftl">
Thx a lot,
Mike
Sorry, there's no such feature. (The
TemplateLoader
facility doesn't even have method for listing directories.)However, a custom
TemplateLoader
could load all matching templates from a directory and "concatenate" them into the sameReader
. Then the problem will be with caching; you you later only want to include a template form the same directory, it will be loaded again.