Re: AW: [Templates] TT and PHP + Attachement

[prev] [thread] [next] [Date index for 2005/02/25]

From: merlyn (Randal L. Schwartz)
Subject: Re: AW: [Templates] TT and PHP + Attachement
Date: 19:24 on 25 Feb 2005
>>>>> "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

AW: [Templates] TT and PHP + Attachement
Denis Banovic 14:55 on 25 Feb 2005

Re: AW: [Templates] TT and PHP + Attachement
Simon Wilcox 15:48 on 25 Feb 2005

Re: AW: [Templates] TT and PHP + Attachement
merlyn (Randal L. Schwartz) 19:24 on 25 Feb 2005

Generated at 08:55 on 15 Mar 2005 by mariachi v0.52