[prev in list] [next in list] [prev in thread] [next in thread]
List: smarty-general
Subject: [smarty] Re: smarty] Re: How does compiling work?
From: Andrei Zmievski <andrei () ispi ! net>
Date: 2001-12-28 22:56:43
[Download RAW message or body]
On Fri, 28 Dec 2001, Brian E. Lozier wrote:
> Then what exactly does compiling do? It compiles the templates themselves \
> together? But what happens if I have a conditional template call?
>
> if($condition) {
> $tpl->assign('Content', $tpl->fetch('condition1.tpl'));
> } else {
> $tpl->assign('Content', $tpl->fetch('condition2.tpl'));
> }
>
> How does smarty compile that? If it leaves the templates totally separate (which \
> seems like the only way possible..) why is it called compiling? What gets \
> compiled?
The template code and HTML get compiled into an equivalent PHP script.
Look at the compiled template one of these days.
-Andrei
We all have photographic memories, it's just
that some of us don't have any film.
---
You are currently subscribed to smarty as: smarty@progressive-comp.com
To unsubscribe send a blank email to leave-smarty-700385W@lists.ispi.net
Visit Smarty's homepage at http://www.phpinsider.com/php/code/Smarty/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic