Template Parameters |
Syntax:
<#params>
<#param name="Param_Name" value="ParamValue"/>
<#param name="Param_Name">ParamValue<#/param>
<#param name="Param_Name" value="ParamVa">lue<#/param>
<#translation name="Translation_Table_Name" default="True">
<#replace string="string1" with="string2"/>
<#replace string="string1">string2<#/replace>
<#replace string="string1" with="stri">ng2<#/replace>
<#/translation name="Translation_Table_Name">
<#/params>
Parameters let template creator tell something to the application that will produce some output using template. They are accessible via Parameters property of the generator. Currently there are only two predefined parameter tags -- <translation> and <replace>. They describe translation tables.
Parameters that may be used in templates:
The template description.
File type, e. g. "HTML", "Text", "CSV", "XML", "Printable HTML"
Default output filename (no extension).
Output filename extension.
The template supports detailed projects. value="True|False"
The template supports detailed tasks. value="True|False"
The template supports detailed periods. value="True|False"
Also you can add any other parameters, for instance, the author of the template.
For example:
<#params> <#param name="Description" value="HTML report"/> <#param name="Output file type" value="HTML"/> <#param name="Default output file name" value="Report.html"/> <#param name="Output file extension" value=".html"/> <#param name="Can show projects detail" value="True"/> <#param name="Can show tasks detail" value="True"/> <#param name="Can show periods detail" value="True"/>
<#translation name="HTML_Translation_Table" default="Macro"> <#replace string="#22" with="""/> <#replace string="<" with="<"/> <#replace string=">" with=">"/> <#replace string="&" with="&"/> <#/translation name="HTML_Translation_Table"> <#/params>
See also:
|