[Buildbot-devel] jinja: user customization and public_html?
Dustin J. Mitchell
dustin at zmanda.com
Sun Dec 20 16:10:56 UTC 2009
Sorry to self-reply, but I think I answered my own question, on
finding this snippet in web/baseweb.py:
default_loader = jinja2.PackageLoader('buildbot.status.web',
'templates')
root = os.path.join(os.getcwd(), 'templates')
loader = jinja2.ChoiceLoader([jinja2.FileSystemLoader(root),
default_loader])
self.templates = jinja2.Environment(loader=loader,
extensions=['jinja2.ext.i18n'],
trim_blocks=True,
undefined=AlmostStrictUndefined)
>From what I can tell, this means that $basedir/templates can override
built-in templates on a page-by-page basis, right?
I think that this needs a little bit of clarification in the texinfo
documentation. If you can confirm my suspicion, I'll be happy to add
the relevant docs.
Dustin
P.S. The 'git log --graph' for buildbot/jinja is now quite a colorful
ASCII animation!
--
Open Source Storage Engineer
http://www.zmanda.com
More information about the devel
mailing list