Mercurial > hg > buttercup
comparison 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 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:9661071dac87 |
---|---|
1 from paste.script import templates | |
2 | |
3 var = templates.var | |
4 | |
5 class buttercup(templates.Template): | |
6 _template_dir = 'template' | |
7 summary = 'paste template for creating instances of the buttercup flower website pattern' | |
8 vars = [ | |
9 var('description', 'One-line description of the package'), | |
10 var('author', 'Author name'), | |
11 var('author_email', 'Author email'), | |
12 var('url', 'URL of homepage'), | |
13 ] | |
14 | |
15 def pre(self, command, output_dir, vars): | |
16 """ | |
17 called before the template is applied | |
18 """ | |
19 | |
20 def post(self, command, output_dir, vars): | |
21 """ | |
22 called after the template is applied | |
23 """ |