comparison makeitso/python_package/{{package}}/template.py @ 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 makeitso/python.py@d4184945f8a8
children e74baa8e6df4
comparison
equal deleted inserted replaced
81:0d5fac58b1a8 82:c434b83ab600
1 #!/usr/bin/env python
2
3 """
4 {{project}} template for makeitso
5 """
6
7 import sys
8 from cli import MakeItSoCLI
9 from optparse import OptionParser
10 from template import MakeItSoTemplate
11
12 class {{project}}Template(MakeItSoTemplate):
13 """
14 {{project}} template
15 """
16 name = '{{project}}'
17 templates = ['template']
18 look = True
19
20 class TemplateCLI(MakeItSoCLI):
21 """
22 CLI driver for the {{project}} template
23 """
24
25 def main(args=sys.argv[:]):
26 cli = TemplateCLI()
27 template = cli.parse()
28 template.substitue()
29
30 if __name__ == '__main__':
31 main()
32