Re: AW: [Templates] TT and PHP + Attachement
[prev]
[thread]
[next]
[Date index for 2005/02/25]
>>>>> "Simon" == Simon Wilcox <essuu@xxxxxxxx.xxx> 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
<merlyn@xxxxxxxxxx.xxx> <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!
_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates