[Buildbot-devel] jinja: user customization and public_html?

Dustin J. Mitchell dustin at zmanda.com
Sun Dec 20 16:54:02 UTC 2009


On Sun, Dec 20, 2009 at 10:29 AM, Marcus Lindblom <macke at yar.nu> wrote:
> So.. nope, you won't get that by default... but we could probably add
> chain another ChoiceLoader into there that looks somewhere where the
> user could put his/her custom HTML, to override specific files. (one, a
> few or all.)

That would be cool, and sounds pretty easy.

> We should probably not fetch custom templates in public_html, as all
> files there are served statically (albiet that index.html is overriden).
> 'html_templates' might be a better name for that directory.

So at this point, buildbot really won't serve anything from that
directory -- save maybe the CSS files?  Should we get rid of
public_html altogether, in favor of a buildmaster-specific templates/
dir?  Should the CSS file be in the buildbot templates/ dir instead of
being installed in public_html?

> Note that unless you have {{ or {% in your index.html today, you can
> re-use that as is.

Although it would require moving it around, right?

> Docs & configuration are lacking a.t.m., yes. For once, the os.getcwd()
> argument to file-loader should be customizable. That what allows custom
> themes/templates.

I know that extensive customization is not a 0.8.0 project, so I don't
want to push this too far, but if we can pick some "low-hanging fruit"
to keep existing levels of flexbility, that would be cool.

Dustin

-- 
Open Source Storage Engineer
http://www.zmanda.com




More information about the devel mailing list