# -*- coding: iso-8859-1 -*-
"""
    MoinMoin - Title Macro

    This very complicated macro produces a page title

    @copyright: 2007 by Oliver Siemoneit
    @license: GNU GPL, see COPYING for details.
"""

Dependencies = []

def execute(macro, args):
    kw = {}
    kw['class'] = 'title'
    result = "%s%s%s" % (macro.formatter.heading(1, 1, **kw),
                         macro.formatter.escapedText(args),
                         macro.formatter.heading(0, 1, **kw))
    return ''.join(result)
 
