Skip to content

Instantly share code, notes, and snippets.

Ideas for a Software the World Needs Desperately: Another Static Site Generator

  • Use Genshi for templating
    • Elegant
    • Powerful
    • Speed not important for static sites
  • But actually map template file extensions to 'renderer' objects
  • SCSS for styles
  • reST for textual content
    • Extensible directives, roles

Sketch of a Python API for command-line interfaces

Usage and short options from reST Option List in docstring

@command
def main(two=False):
    """usage: main [options]

    -2, --two  This option has two variants.