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

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

From: Denis Banovic
Subject: AW: AW: [Templates] TT and PHP + Attachement
Date: 12:26 on 27 Feb 2005
Hi Randal,

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

Denis

-----Urspr=FCngliche Nachricht-----
Von: Randal L. Schwartz [mailto:merlyn@xxxxxxxxxx.xxx]=20
Gesendet: Freitag, 25. Februar 2005 20:24
An: Simon Wilcox
Cc: Denis Banovic; Andy Wardley; templates@xxxxxxxxxxxxxxxx.xxx
Betreff: Re: AW: [Templates] TT and PHP + Attachement


>>>>> "Simon" =3D=3D Simon Wilcox <essuu@xxxxxxxx.xxx> writes:

Simon> But in any csae, if these templates are simple enough to be hacked us=
ing
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 =3D "a > b") %]

and that expands to

        [% IF a > b %]

for TT and whatever you want for PHP.

--=20
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=
!

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


_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates

(message missing)

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

AW: AW: [Templates] TT and PHP + Attachement
Denis Banovic 12:26 on 27 Feb 2005

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

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