Re: [SMARTY] include and literal

From: Date: Thu, 04 Mar 2004 15:19:16 +0000
Subject: Re: [SMARTY] include and literal
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-11052@lists.php.net to get a copy of this message
use {fetch} On Thu, 2004-03-04 at 07:33, Tony Demark wrote: > Howdy. > > I hope I am not missing something obvious here, but, is there a way to > combine the "include" and "literal" tags? > > I have a log file, which I display like this: > > <pre> > {include file="file:$file"} > </pre> > > which works all well and good until the log file contains something > like: > > {foobar} > > I then get a Smarty error about this "tag". > > Right now, I see two ways of handling this: > (1) Run a modifier over the whole log file (which may be rather large) > (2) Create a function like "include", but which will surround the > content with {literal} tags. > > Any other option I am neglecting? > > Thanks, > - Tony

« previous php.smarty.general (#11052) next »