/examples/web/wiki/macros/wiki.py
Python | 9 lines | 3 code | 4 blank | 2 comment | 0 complexity | ea617fe198b60ca55bdbfc193b99aa0d MD5 | raw file
1"""Wiki macros""" 2 3from genshi import builder 4 5 6def title(macro, environ, *args, **kwargs): 7 """Return the title of the current page.""" 8 9 return builder.tag(environ["page.name"])