Nope, eztemplate is black magic when it comes to these things, as it's two separate code paths for compiled and interpreted mode.
If you survive to tell the tale we'll buy you a cookie :) But! Template-blocks are hardcoded into the parsers, so it is AFAIK not something you can extend from extensions. So if I where you I would try to go another route on this one, at least until we have changed our template engine to something else.
Well one way to do it would be to create a custom template operator to which you will pass the CoffeScript code, and which will then generate the desired output.
P.S. In case you wondered, strings in eZP template can be multiline.
--
Nothing is impossible. Not if you can imagine it!
Hubert Farnsworth
You must be logged in to post messages in this topic!