Don't pass config to stylesheets.

This commit is contained in:
Florian Bruhin 2015-08-19 20:38:19 +02:00
parent 1ddd65304a
commit dc0e8b4626

View File

@ -42,8 +42,7 @@ def get_stylesheet(template_str):
colordict = ColorDict(config.section('colors'))
fontdict = FontDict(config.section('fonts'))
template = jinja2.Template(template_str)
return template.render(color=colordict, font=fontdict,
config=objreg.get('config'))
return template.render(color=colordict, font=fontdict)
def set_register_stylesheet(obj):