Re: [SMARTY] Parsing a string as template
| From: | Maximillian Schwanekamp | Date: | Tue, 21 Jun 2005 19:36:23 +0000 |
| Subject: | Re: [SMARTY] Parsing a string as template | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-12721@lists.php.net to get a copy of this message | ||
Monte Ohrt wrote:
> About the easiest way I've handled this is two templates:
Joe Stump wrote:
> It has and, in my case, I found it *much* easier to cache the string to
> a temporary template file and parse that.
Thanks for the input gentlemen. I guess the two-template solution
(actually three, cause I have message.tpl.txt for the Text-only version
as well!) could work. I'll probably use that for the "significant"
messages, and perhaps Joe's temporary file solution for quick solutions
where a designer is not likely to be involved.
--
Maximillian Von Schwanekamp
http://www.neptunewebworks.com/