Re: [SMARTY-DEV] Fully compile time includes

[email protected] (Alain Williams) Wed, 5 Oct 2005 23:23:19 +0100
Newsgroups php.smarty.dev
Organization Parliament Hill Computers Ltd
Message-ID <[email protected]>
On Wed, Oct 05, 2005 at 03:10:09PM -0700, boots wrote:
> --- Alain Williams <[email protected]> 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>
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFDRFJXikkW5JBhACYRAtw5AKCzcN1ahgiRST+jQA+TTOtxAREgXgCgoIev
NvlQYU3oQoEh5q2y7E+zzMY=
=gpBN
-----END PGP SIGNATURE-----