If you just want to include the div from one freemarker template in another freemarker template you can extract the common div out by using a macro. For example,
in macros.ftl:
<#macro filterReportDiv>
<div id="filterReportParameters" style="display:none">
<form ...>
..
</form>
</div>
</#macro>
Then in both your freemarker templates, you can import macros.ftl
and invoke the macro via something like:
<#import "/path/to/macros.ftl" as m>
<@m.filterReportDiv />
Macros are a great feature in FreeMarker and can be parameterized as well - they can really cut down on code duplication in your templates.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…