view makeitso/python_package/{{package}}/template.py @ 91:672d2d3ee322

document a bit and add a test for an include example
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 10 Jan 2011 21:42:32 -0800
parents c434b83ab600
children e74baa8e6df4
line wrap: on
line source

#!/usr/bin/env python

"""
{{project}} template for makeitso
"""

import sys
from cli import MakeItSoCLI
from optparse import OptionParser
from template import MakeItSoTemplate

class {{project}}Template(MakeItSoTemplate):
  """
  {{project}} template
  """
  name = '{{project}}'
  templates = ['template']
  look = True

class TemplateCLI(MakeItSoCLI):
  """
  CLI driver for the {{project}} template
  """

def main(args=sys.argv[:]):
  cli = TemplateCLI()
  template = cli.parse()
  template.substitue()

if __name__ == '__main__':
  main()