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:

 

name="Description"

The template description.

 

name="Output file type"

File type, e. g. "HTML", "Text", "CSV", "XML", "Printable HTML"

 

name="Default output file name"

Default output filename (no extension).

 

name="Output file extension"

Output filename extension.

 

name="Can show projects detail"

The template supports detailed projects.

       value="True|False"

 

name="Can show tasks detail"

The template supports detailed tasks.

       value="True|False"

 

name="Can show periods detail"

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="&quot;"/>

               <#replace string="<" with="&lt;"/>

               <#replace string=">" with="&gt;"/>

               <#replace string="&" with="&amp;"/>

       <#/translation name="HTML_Translation_Table">

<#/params>

 

 

See also:

       Template language overview

       Translation tables

       Loops

       Conditions

       Macros

       Comments

 

 


Time Tracker - Download - Buy now