It was hard to decide but I choused the PHPLib as my template engine. Just one ini file to include and - bueno.
But now I ask - Is it possible to get some information (names of the variables) from the template before actually parsing the template?
I have a problem like this:
I want to let the designer to choose what he/she displays and what format he uses. (each format or item is provided to him by a different variable). Sounds OK, but on my PHP side I will always have to provide the values for those variables - not knowing if the designer even uses these variables.
For example - I have done a bunch of DATE-TIME options (variables) for designer. And behind the scenes I also translate the dates-dimes before parsing the template – The fact is I do a lot of processing on my side. What ever the process is (forget the date-time stuff).
Anyway - I have no clue if any of those variables I provide are called by designer or not. And I waste my resources just like this. Any way round this?
Sure I can parse the template myself before I dive into my heavy processes but … maybe there is a better way?
Or maybe some other template engine supports something like this?
thank U