Re: [SMARTY] Re-compiling templates?
| From: | messju mohr | Date: | Tue, 11 Mar 2003 11:14:46 +0000 |
| Subject: | Re: [SMARTY] Re-compiling templates? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-8548@lists.php.net to get a copy of this message | ||
On Tue, Mar 11, 2003 at 11:50:52AM +0100, Sven Fuchs wrote:
> 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?
for the first round you enable caching.
for the second part you should use {insert} functions.
> 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