1.1 --- a/moinformat/themes/__init__.py Mon Aug 13 22:54:01 2018 +0200
1.2 +++ b/moinformat/themes/__init__.py Tue Aug 14 22:33:30 2018 +0200
1.3 @@ -32,17 +32,10 @@
1.4
1.5 return themes.get(name)
1.6
1.7 -def make_theme(name, output, linker, pagename):
1.8 +def make_theme(metadata, name=None):
1.9
1.10 - """
1.11 - Return a theme of the type indicated by 'name', employing the given 'output'
1.12 - context, 'linker' and 'pagename'.
1.13 - """
1.14 + "Return a theme using the given 'metadata' and optional 'name'."
1.15
1.16 - theme_cls = get_theme(name)
1.17 - if not theme_cls:
1.18 - return None
1.19 -
1.20 - return theme_cls(output, linker, pagename)
1.21 + return metadata.get_theme(name)
1.22
1.23 # vim: tabstop=4 expandtab shiftwidth=4