include and literal
| From: | Tony Demark | Date: | Thu, 04 Mar 2004 13:33:08 +0000 |
| Subject: | include and literal | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-11050@lists.php.net to get a copy of this message | ||
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