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