Don't pass config to stylesheets.
This commit is contained in:
parent
1ddd65304a
commit
dc0e8b4626
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user