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/
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
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,
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
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?