/examples/web/wiki/macros/wiki.py

https://bitbucket.org/prologic/circuits/ · Python · 9 lines · 3 code · 4 blank · 2 comment · 0 complexity · ea617fe198b60ca55bdbfc193b99aa0d MD5 · raw file

  1. """Wiki macros"""
  2. from genshi import builder
  3. def title(macro, environ, *args, **kwargs):
  4. """Return the title of the current page."""
  5. return builder.tag(environ["page.name"])