Re: [Templates] TT and PHP

2005-02-25 Thread Perrin Harkins
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

Re: [Templates] TT and PHP

2005-02-25 Thread Andy Wardley
[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

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

2005-02-25 Thread Randal L. Schwartz
> "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

Re: [Templates] TT and PHP

2005-02-25 Thread Tom Insam
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

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

2005-02-25 Thread Denis Banovic
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

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

2005-02-25 Thread Simon Wilcox
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.

Re: AW: [Templates] TT and PHP

2005-02-25 Thread Michael Peters
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

AW: [Templates] TT and PHP + Attachement

2005-02-25 Thread Denis Banovic
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

AW: [Templates] TT and PHP

2005-02-25 Thread Denis Banovic
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

Re: AW: [Templates] TT and PHP

2005-02-25 Thread Simon Wilcox
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

AW: [Templates] TT and PHP

2005-02-25 Thread Denis Banovic
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