comparison firefoxaddon/__init__.py @ 0:9869cf47fcf8 default tip

initial commit of Firefox addon template
author k0s <k0scist@gmail.com>
date Sun, 28 Mar 2010 16:25:58 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:9869cf47fcf8
1 from paste.script import templates
2
3 var = templates.var
4
5 class FirefoxAddon(templates.Template):
6 _template_dir = 'template'
7 summary = 'template for a firefox addon'
8 vars = [
9 var('description', 'One-line description of the package'),
10 var('author', 'Author name'),
11 var('url', 'URL of homepage'),
12 ]
13
14 def pre(self, command, output_dir, vars):
15 """
16 called before the template is applied
17 """
18
19 def post(self, command, output_dir, vars):
20 """
21 called after the template is applied
22 """