In this post of mine a user posted the following answer:
For the sake of future readers... The
#include
directive never outputs itself like<#include ...>
(so as you now know, it'smain.ftl
that's not passed to FreeMarker). Itsparse
parameter applies to the included file. Also if a template is not found, it will throw an exception, not doing something arbitrary like printing<#include ...>
.
I ultimately felt that it should not have been an answer as it does not actually help solve the issue (or come close for that matter) rather it informs people about the workings of the #include
directive subsequently it should have been a comment. Yet my flag was declined:
For future references, why was my NAA flag declined so I don't make the same mistake or was it in fact declined incorrectly?
Update
This question is being closed as a potential duplicate yet my issue is that the answer that I've linked doesn't actually attempt to answer the question as mentioned above it is giving general information about the directive not what is causing the directive not to parse the content of the .ftl
file.
.ftl
file.