On 21-10-2008 at 07:03:50 Maciej Łebkowski <[EMAIL PROTECTED]> wrote:

I dont know if there are any drawbacks — cache, optimisation, etc?

If you've implemented PHPTAL_Source well then cache should work fine as long as code of the macro doesn't change too often.

Or maybe I am missing some fundamential concepts?

It depends what are you trying to achieve.

If you want LISPy meta-syntax, you should implement a template prefilter.

If you're just trying to implement eval() in TAL, then don't do it - it's just asking for trouble (bugs in macro generation code could allow code injection).

Maybe you could just write one flexible macro that works with more than one specific dataset? If you need to generate complex markup you could write expression modifier or call PHP function from template.

--
regards, Kornel

_______________________________________________
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal

Reply via email to