Hallo!
I've found this wonderful Template-System recently. Now I'm changing my Scripts... and encountered the following problem:
When using one template directly, everything works fine. Now I included it in another template and it does not work. To be correct: Yes, the template is included, but only the loops were parsed. The "normal" variables were definitely not.
To illustrate the problem a bit more detailled:
$tmpl = new vlibTemplate'templates/form.tpl.html';
$tmpl-setVar'name',$name;
...
$tmpl-setLoop'ticons',$this-_config'icons';
...
$tmpl-pparse;
works, while the same (with some more variables) will not work with "preview.tpl.html" which includes "form.tpl.html". Oddly, includes work with another template in the same script.
Maybe anyone has an idea... if you need other details please ask.
Thanks,
Soenke