> IIRC Mako absolute template paths are actually relative to 
> mako.directories. 
> (Whereas relative template paths are relative to the location of the 
> current template.) 
>  
>
Thanks! Yes, that's what I saw in Mako's TemplateLookup. As far as I 
understand TemplateLookup.get_template strips the leading slash and then 
tries to append it to every directory in mako.directories. (OTOH Mako's 
Template works with absolute pathnames.)

I can live with that. But then someone please update the Pyramid 
documentation at 
http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/templates.html#using-templates-directlyto
 reflect that behaviour. Obviously "... absolute, starting with a slash 
on UNIX or a drive letter prefix on Windows" means absolute pathname in the 
operating system's sense, not Mako's sense that you mentioned above.

Andras

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to