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