Hello,
i want to ask, what do you think about following improvement. I wrote a
patch, which assigns default variables to an include. The syntax:
<TMPL_INCLUDE NAME="xxx.tmpl" DEFAULT="var1=1,var2=2,var3=3">.
This means, that all variables named var1, var2, var3 have "default" values.
This will affect all TMPL_VAR, TMPL_IF, TMPL_UNLESS and TMPL_LOOP (with
global_vars=1) in the include.
There are 2 options to this:
recursive_idefaults -- means, that DEFAULT option is valid in all includes of
current include
overwrite_idefaults -- values, that are set with the DEFAULT option, can be
overwritten by calling param.
Best regards
Roman Porizka