User Defined Functions
There are a variety of situations when you need to represent data according to some condition.
To simplify the solution of this problem we defined the logic of User Defined Functions in CT++.
You can call them from the bodies of <TMPL_if, <TMPL_unless è <TMPL_var operators either using the <TMPL_udf operator.
The following example shows how to call User Defined Functions:
<TMPL_var HTMLESCAPE(name)>
or
<TMPL_if IN_SET(name, "1", "2", "3")>
Variable "name" is set of "1", "2" or "3".
</TMPL_if>
List of embedded functions of the template engine:
Copyright © 2003 - 2005 CTPP Dev. Team | http://reki.ru/products/ctpp