[% template_content | eval %] The eval filter is a wonderful thing :)
On 03/16/2010 06:54 AM, Anthony Gladdish wrote: > Hi, > > I have a database field containing following xhtml + TT: > > My $template_content = ' > <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" > codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" > width="567" height="480"> <param name="quality" value="high" /> <param > name="movie" value="[% Catalyst.uri_for( > Catalyst.controller('File').action_for('file'), [id], { raw => 1 } ) %]" /> > <embed src="[% Catalyst.uri_for( > Catalyst.controller('File').action_for('file'), [id], { raw => 1 } ) %]" > quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" > type="application/x-shockwave-flash" width="567" height="480"> > </embed> > </object> > '; > > I need to render it in a template: > > [% template_content %] > > ... which prints the above content ok but does not process the contained > markup for getting the Catalyst uri_for value. > > Can you offer advice about how to achieve this internal processing of markup > in a scalar? > > Thanks, > Anthony > > _______________________________________________ > templates mailing list > [email protected] > http://mail.template-toolkit.org/mailman/listinfo/templates > -- Todd Freeman Ext 6103 .^. Don't fear the penguins! Programming Department /V\ Andrews University // \\ http://www.linux.org/ http://www.andrews.edu/~freeman/ /( )\ http://www.debian.org/ ^^ ^^ _______________________________________________ templates mailing list [email protected] http://mail.template-toolkit.org/mailman/listinfo/templates
