Everyone else is having so much fun with this topic, I just can't
resist:
Make a mod_perl 2 filter that processes the output of the PHP scripts as
TT templates. Then you can use your TT header/footer from PHP.
- Perrin
___
templates mailing list
temp
[reposted - not CC'd to the list first time around]
Denis Banovic wrote:
> Yes, that's correct, I'm looking for a way to convert (some parts of )
> TT ( eg. [ FOREACH and IF ] ) to PHP. Our PHP templates are very similar
> to TT-Templates,
One approach is to subclass Template::Directive (the p
> "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 tt
I was just wondering if anyone already tried to interpret TT-Templates
in PHP?
Insane idea:
http://search.cpan.org/~karasik/PHP-0.04/PHP.pm
tom
___
templates mailing list
templates@template-toolkit.org
http://lists.template-toolkit.org/mailman/listinfo/t
Hi Simon,
On Fri, 25 Feb 2005, Denis Banovic wrote:
> I think that I've put this question on the wrong list. It's true that I
> need to convert TT-Templates to PHP, but I must do it IN PHP.
>Do you ?
>If I've understood you correctly, you have a template that you wish to use
>in both TT and PHP
On Fri, 25 Feb 2005, Denis Banovic wrote:
> I think that I've put this question on the wrong list. It's true that I
> need to convert TT-Templates to PHP, but I must do it IN PHP.
Do you ?
If I've understood you correctly, you have a template that you wish to use
in both TT and PHP applications.
Denis Banovic wrote:
Hi Andy,
First of all I wanted to thank you once again for building TT, I'm looking
forward to see the TT3 in action.
We've met in San Diego on the OSCON 2001 or 2002 I think.
Thank you for your help but I still feel a bit misunderstood.
I think that I've put this question on
Sorry, I forgot the attached file
-Ursprüngliche Nachricht-
Von: Denis Banovic
Gesendet: Freitag, 25. Februar 2005 15:54
An: 'Andy Wardley'
Cc: 'templates@template-toolkit.org'
Betreff: AW: [Templates] TT and PHP
Hi Andy,
First of all I wanted to thank you once again for building TT, I
Hi Andy,
First of all I wanted to thank you once again for building TT, I'm looking
forward to see the TT3 in action.
We've met in San Diego on the OSCON 2001 or 2002 I think.
Thank you for your help but I still feel a bit misunderstood.
I think that I've put this question on the wrong list. It
On Fri, 25 Feb 2005, Denis Banovic wrote:
> Yes, that's correct, I'm looking for a way to convert (some parts of )
> TT ( eg. [ FOREACH and IF ] ) to PHP. Our PHP templates are very similar
> to TT-Templates,
How about doing it the other way and processing the PHP in Perl ?
http://search.cpan.or
Hi Steve,
Yes, that's correct, I'm looking for a way to convert (some parts of ) TT ( eg.
[ FOREACH and IF ] ) to PHP. Our PHP templates are very similar to
TT-Templates,
TT:
[% IF myvar == 3 %] myvar is three [% ELSE %] myvar is not three [% END %]
PHP:
myvar is three myvar is not three
F
11 matches
Mail list logo