1.1 --- a/moinformat/serialisers/__init__.py Mon Aug 06 15:44:10 2018 +0200
1.2 +++ b/moinformat/serialisers/__init__.py Mon Aug 06 15:45:11 2018 +0200
1.3 @@ -33,7 +33,7 @@
1.4
1.5 return serialisers["%s.moin" % name]
1.6
1.7 -def make_serialiser(name, output=None, linker=None):
1.8 +def make_serialiser(name, output=None, linker=None, pagename=None):
1.9
1.10 """
1.11 Return a serialiser instance for the format having the given 'name'.
1.12 @@ -43,11 +43,14 @@
1.13
1.14 The optional 'linker' is used to control which linking scheme is used with
1.15 the serialiser, with the default having the same name as the serialiser.
1.16 +
1.17 + The optional 'pagename' indicates the name details of the page to be
1.18 + serialised.
1.19 """
1.20
1.21 output = output or make_output("standalone")
1.22 linker = linker or make_linker(name, "")
1.23 - return get_serialiser(name)(output, serialisers, linker)
1.24 + return get_serialiser(name)(output, serialisers, linker, pagename)
1.25
1.26 def serialise(doc, serialiser=None):
1.27