Re: [SMARTY-DEV] Fully compile time includes
| From: | Alain Williams | Date: | Wed, 05 Oct 2005 22:23:19 +0000 |
| Subject: | Re: [SMARTY-DEV] Fully compile time includes | ||
| References: | 1 2 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-2792@lists.php.net to get a copy of this message | ||
On Wed, Oct 05, 2005 at 03:10:09PM -0700, boots wrote:
> --- Alain Williams <addw@phcomp.co.uk> wrote:
> > What I want to achieve is that the contents of these small files are
> > physically put into
> > the compiled .php of the top level templates -- ie avoiding the extra
> > work of opening the file.
> > Perhaps some option to {include} might allow this or another verb
> > like {include_static} or
> > {include_paste} that just took the filename as an argument -- nothing
> > else --
> > might be another way.
>
>
> Not an official solution but you may be interested in:
> http://www.phpinsider.com/smarty-forum/viewtopic.php?t=5068
Many thanks -- that is what I am looking for.
Any idea how much speed improvement this gives ? OK I know that it will
depend on all sorts of things.
Any reason why something like this cannot be made 'official' ?
I'm off to bed now, but will play with it later.
Cheers
--
Alain Williams
Parliament Hill Computers Ltd.
Linux Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256 http://www.phcomp.co.uk/
#include <std_disclaimer.h>