Revert "Don't pass config to stylesheets."

This reverts commit dc0e8b4626.
This commit is contained in:
Nathan Isom 2015-10-15 12:36:24 -05:00
parent 5f8ea6dc16
commit 0e186487f5

View File

@ -43,7 +43,8 @@ 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)
return template.render(color=colordict, font=fontdict,
config=objreg.get('config'))
def set_register_stylesheet(obj):