runtime template parsing

From: Date: Mon, 07 May 2001 07:05:07 +0000
Subject: runtime template parsing
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-686@lists.php.net to get a copy of this message
Hi, In my templated site, I have some content, which contains embedded template syntax. It's easier to explain what I mean by giving an example: main.tpl: <html> <body> {$title} <hr> {$body} </body> </html> $title and $body are assigned in main.php, where they are read from a database first. Now suppose $body contains stuff like {include} or a repetition of {$title} or some other template syntax. Is there an easy way to call the template parser at runtime? Smarty would have to compile to a temporary file, I guess, and include that. Greetings, Ivo -- Ivo Jansch <ivo@ibuildings.nl> ibuildings.nl BV - information technology http://www.ibuildings.nl

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