changeset 82:c434b83ab600

add a template to create templates. tricky, eh?
author Jeff Hammel <jhammel@mozilla.com>
date Sun, 09 Jan 2011 10:43:47 -0800
parents 0d5fac58b1a8
children dc51bd3b8f6a
files makeitso/python_package/{{package}}/template.py
diffstat 1 files changed, 32 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/makeitso/python_package/{{package}}/template.py	Sun Jan 09 10:43:47 2011 -0800
@@ -0,0 +1,32 @@
+#!/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()  
+