[Templates] Pass through perl?
[prev]
[thread]
[next]
[Date index for 2004/07/17]
We're trying to convert a proprietary templating system to
TemplateToolkit. Before we had things like:
[if $self->{PRODUCT_AVAILABLE}->{'gold-1'} > 0]
blah
[end]
where anything between [if and ] would just be evaluated.
Converting this to template toolkit is causing lots of problems due to
syntax issues.
We've also ran into the fact that gt ge lt and le aren't supported,
among other similar seemingly "not supported" issues.
Is there anyway we can pass a chunk of text through the TT interpreter
without it trying to convert it?
So, something like
[% IF {$self->{PRODUCT_AVAILABLE}->{'gold-1'}} {gt} foo %]
and have it appear as something like
if($self->{PRODUCT_AVAILABLE}->{'gold-1'} gt $stash->GET('foo')) {
?
Any other suggestions for translating a lot of random perl code into TT
without rewriting a perl interpreter?
Thanks!
Chris
_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates
 |
[Templates] Pass through perl?
Chris Huegle 01:48 on 17 Jul 2004
|