I need some way to be able to do the following.
We fetch some data from a database that is to be displayed on a page. In order to get a couple of buttons ie Edit and Admin I append the following here document to the page as follows.
while($sth->fetchrow_array()) { $variables->{CONTENT_NAME} = <<EOF;
[% IF Edit_Authority == "yes" %]
[% Content_Id = $content_id %]
[% INCLUDE admin/editor.t %]
[% END %]
EOF
$variables->{CONTENT_NAME} .= $content;
}This variable is then used in a page as follows.
<snip>
<div id="mainContent">
[% CONTENT_NAME %]
</div>
</snip>What I want is for TT to process the contents of the variable before it is displayed. I am sure I have read something simialar to this in the Badger book.
Harry
_______________________________________________ templates mailing list [EMAIL PROTECTED] http://lists.template-toolkit.org/mailman/listinfo/templates
