raptor <[EMAIL PROTECTED]> writes:
> I want to do the following thing.. prapare a string (from perl), after
> that pass this string to the TT but instead of placing the content of
> this string into the output I want it to be evaluated like Template
> (include!!) and the result of it parsing included.. one example :
>
>
> TT file
> ==========
>
> <? FOREACH row = result ?>
> <? eval something !!! ?>
> <? END ?>
>
>
> in my perl-scipt i have this :
> ==============================
>
>
> $something = "<td>row.field1</td><td>row.field2</td>"
>
>
> did U got the idea ?! Just like INCLUDE but in a string
You want to use the 'eval' filter.
in perl:
$something = "<td><? row.field1 ?></td><td><? row.field2 ?></td>"
in the template:
<? FOREACH row = result ?>
<? something | EVAL ?>
<? END ?>
--
Cheers,
haj