Re: [Repoze-dev] Template Inheritance with repoze.bfg.jinja2

2009-08-26 Thread Fergus Doyle
Hi Mitch, I don't personally use repoze.bfg.jinja2 I would configure jinja separately with something like this at the top of views.py: from webob import Response from jinja2 import Environment, PackageLoader env = Environment(loader=PackageLoader(PACKAGE_NAME, 'path/to/

Re: [Repoze-dev] Template Inheritance with repoze.bfg.jinja2

2009-08-24 Thread Chris McDonough
On 8/24/09 11:25 AM, Mitchell Garnaat wrote: > I'm not explicitly specifying a Loader. Perhaps that's my problem? I'm > just getting started with repoze.bfg so silly mistakes are a given. I > looked briefly at the code behind the jinja2 support and it seemed that > it was using a hardcoded Func

Re: [Repoze-dev] Template Inheritance with repoze.bfg.jinja2

2009-08-24 Thread Mitchell Garnaat
I'm not explicitly specifying a Loader. Perhaps that's my problem? I'm just getting started with repoze.bfg so silly mistakes are a given. I looked briefly at the code behind the jinja2 support and it seemed that it was using a hardcoded FunctionLoader. Is there a way to override that? Thanks,

Re: [Repoze-dev] Template Inheritance with repoze.bfg.jinja2

2009-08-24 Thread Fergus Doyle
Hi Mitch, What kind of Loader are you using for your Environment? Cheers, Fergus On 24/08/2009 05:42, Mitchell Garnaat wrote: Hi - I've got Jinja2 working with repoze.bfg but if I want to do template inheritance, I need to specify an absolute file path, like this: {% extends '/Users

[Repoze-dev] Template Inheritance with repoze.bfg.jinja2

2009-08-23 Thread Mitchell Garnaat
Hi - I've got Jinja2 working with repoze.bfg but if I want to do template inheritance, I need to specify an absolute file path, like this: {% extends '/Users/mitch/Projects/foobar/foobar/templates/layout.html' %} rather than something like this: {% extends 'layout.html' %} Is this by design?