Le vendredi 10 octobre 2008 à 10:39 +0100, Kornel Lesiński a écrit :

> On 10-10-2008 at 10:25:36 Guillaume Lecanu <[EMAIL PROTECTED]> wrote:
> 
> > I have a file "macros.html" with all my macros for our website.
> > But this is really annoying to call each macros like this :
> > metal:use-macro="../../macros.html/name_of_my_macro"
> >
> > There is a solution to force to load macros.html and to call the macro
> > everywhere like this :
> > metal:use-macro="name_of_my_macro"  ?
> 
> This is possible:
> 
> $phptal->m = '../../macros.html/';
> 
> metal:use-macro="${m}name_of_my_macro"

Hi Kornel,

Thanks for this trick, I'll uses it if there is really not other way.
Do you think it's possible to patch PHPTAL to force to read the file(s)
of our choices ?

If PHPTAL read it, I suppose all readed macros will be saved in memory,
and so we should uses it everywhere without the need of ${m};

Thanks for your help



_______________________________________________
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal

Reply via email to