annotate buttercup/__init__.py @ 0:9661071dac87

initial commit of the buttercup flower; just a stub
author k0s <k0scist@gmail.com>
date Fri, 26 Feb 2010 15:53:51 +0000
parents
children e6e80bf0476f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
9661071dac87 initial commit of the buttercup flower; just a stub
k0s <k0scist@gmail.com>
parents:
diff changeset
1 from paste.script import templates
9661071dac87 initial commit of the buttercup flower; just a stub
k0s <k0scist@gmail.com>
parents:
diff changeset
2
9661071dac87 initial commit of the buttercup flower; just a stub
k0s <k0scist@gmail.com>
parents:
diff changeset
3 var = templates.var
9661071dac87 initial commit of the buttercup flower; just a stub
k0s <k0scist@gmail.com>
parents:
diff changeset
4
9661071dac87 initial commit of the buttercup flower; just a stub
k0s <k0scist@gmail.com>
parents:
diff changeset
5 class buttercup(templates.Template):
9661071dac87 initial commit of the buttercup flower; just a stub
k0s <k0scist@gmail.com>
parents:
diff changeset
6 _template_dir = 'template'
9661071dac87 initial commit of the buttercup flower; just a stub
k0s <k0scist@gmail.com>
parents:
diff changeset
7 summary = 'paste template for creating instances of the buttercup flower website pattern'
9661071dac87 initial commit of the buttercup flower; just a stub
k0s <k0scist@gmail.com>
parents:
diff changeset
8 vars = [
9661071dac87 initial commit of the buttercup flower; just a stub
k0s <k0scist@gmail.com>
parents:
diff changeset
9 var('description', 'One-line description of the package'),
9661071dac87 initial commit of the buttercup flower; just a stub
k0s <k0scist@gmail.com>
parents:
diff changeset
10 var('author', 'Author name'),
9661071dac87 initial commit of the buttercup flower; just a stub
k0s <k0scist@gmail.com>
parents:
diff changeset
11 var('author_email', 'Author email'),
9661071dac87 initial commit of the buttercup flower; just a stub
k0s <k0scist@gmail.com>
parents:
diff changeset
12 var('url', 'URL of homepage'),
9661071dac87 initial commit of the buttercup flower; just a stub
k0s <k0scist@gmail.com>
parents:
diff changeset
13 ]
9661071dac87 initial commit of the buttercup flower; just a stub
k0s <k0scist@gmail.com>
parents:
diff changeset
14
9661071dac87 initial commit of the buttercup flower; just a stub
k0s <k0scist@gmail.com>
parents:
diff changeset
15 def pre(self, command, output_dir, vars):
9661071dac87 initial commit of the buttercup flower; just a stub
k0s <k0scist@gmail.com>
parents:
diff changeset
16 """
9661071dac87 initial commit of the buttercup flower; just a stub
k0s <k0scist@gmail.com>
parents:
diff changeset
17 called before the template is applied
9661071dac87 initial commit of the buttercup flower; just a stub
k0s <k0scist@gmail.com>
parents:
diff changeset
18 """
9661071dac87 initial commit of the buttercup flower; just a stub
k0s <k0scist@gmail.com>
parents:
diff changeset
19
9661071dac87 initial commit of the buttercup flower; just a stub
k0s <k0scist@gmail.com>
parents:
diff changeset
20 def post(self, command, output_dir, vars):
9661071dac87 initial commit of the buttercup flower; just a stub
k0s <k0scist@gmail.com>
parents:
diff changeset
21 """
9661071dac87 initial commit of the buttercup flower; just a stub
k0s <k0scist@gmail.com>
parents:
diff changeset
22 called after the template is applied
9661071dac87 initial commit of the buttercup flower; just a stub
k0s <k0scist@gmail.com>
parents:
diff changeset
23 """