Hi Randal,

This one could work, not quite sure how exactly to solve that. The other 
problem is, that it generates 2 different output files, and we all know what 
happens, when designer have to choose between 3 Files to make changes. You can 
be sure, they will change the wrong one.

Denis

-----Urspr�ngliche Nachricht-----
Von: Randal L. Schwartz [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 25. Februar 2005 20:24
An: Simon Wilcox
Cc: Denis Banovic; Andy Wardley; [email protected]
Betreff: Re: AW: [Templates] TT and PHP + Attachement


>>>>> "Simon" == Simon Wilcox <[EMAIL PROTECTED]> writes:

Simon> But in any csae, if these templates are simple enough to be hacked using
Simon> regexs, surely you can just maintain two sets of them ?

Or...

(warning, crazy idea ahead)

create a meta-template that can be processed by TT (using ttree) into
either TT templates, or PHP templates.

You write:

        [% if (test = "a > b") %]

and that expands to

        [% IF a > b %]

for TT and whatever you want for PHP.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[email protected]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

____________
Virus checked by G DATA AntiVirusKit
Version: AVK 15.0.2702 from 26.01.2005
Virus news: www.antiviruslab.com


_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to