Operators
At a moment in CT++, there are six operators:
- <TMPL_var VAR_NAME> - Direct parameter output.
- <TMPL_if VAR_NAME> <TMPL_else> </TMPL_if> - The condition.
- <TMPL_unless VAR_NAME> <TMPL_else> </TMPL_unless> - The complementary condition.
- <TMPL_loop MODIFICATOR1 MODIFICATOR1 VAR_NAME> </TMPL_loop> - The loop.
- <TMPL_udf FUNCTION_NAME(PARAMETER1, "text 1", PARAMETER2, "text2")> - User function execution.
- <TMPL_include file.tmpl> - Including/inserting other templates taken from the file name in the current one.
In order to simplify the make-up, we made all operators names case insensitive, that is why the notifications such as: <TMPL_var , <TmPl_VaR , <tmpl_VAR are equal.
In CT++ the names of variables are case sensitive, that’s why for example: <TMPL_var ABC>, <TMPL_var abc>, <TMPL_var Abc> are not in equal state.
Define the top length of any operator before compiling the CT++ library, default value is 128 bytes.
VAR_NAME may contains any chars except '>', '(', ')' and space.
Attention! Parameters, which names starting with a symbol of underlining (for example __FIRST__) are reserved names and should NOT be used by the developer.
Copyright © 2003 - 2005 CTPP Dev. Team | http://reki.ru/products/ctpp