12345678910111213 |
- def define_env(env):
- @env.macro
- def pageinfo(authors = None, created = None, updated = None):
- parts = []
- if authors is not None:
- parts.append(", ".join(authors if isinstance(authors, list) else [ authors ]))
- if created is not None:
- parts.append("Created " + created)
- if updated is not None:
- parts.append("Updated " + updated)
- return "<br><small>" + " | ".join(parts) + "</small>"
|