Re-compiling templates?
| From: | Sven Fuchs | Date: | Tue, 11 Mar 2003 10:50:52 +0000 |
| Subject: | Re-compiling templates? | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-8547@lists.php.net to get a copy of this message | ||
Hello,
for porting an existing application I need to have a mechanism
to compile/parse the templates twice:
- in a first round has to be assigned the biggest part of data, taking
much time to access the database. After that the template has to be
cached.
- in a second round some minor changes have to be applied to the
(cached or rebuild) template.
I've downloaded Smarty and found it very promising, but now I'm
wondering, how to get process described above work. Or have I missed a
part of the manual?
I thought, possibly I have to juggle around with the template and
template_c directory, setting the template-dir to 'template_c' after
having rebuild/retrieved the template and before entering the second
part of the process?
Thanks in advance!
Sven Fuchs