Mercurial > hg > buttercup
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/buttercup/__init__.py Fri Feb 26 15:53:51 2010 +0000 @@ -0,0 +1,23 @@ +from paste.script import templates + +var = templates.var + +class buttercup(templates.Template): + _template_dir = 'template' + summary = 'paste template for creating instances of the buttercup flower website pattern' + vars = [ + var('description', 'One-line description of the package'), + var('author', 'Author name'), + var('author_email', 'Author email'), + var('url', 'URL of homepage'), + ] + + def pre(self, command, output_dir, vars): + """ + called before the template is applied + """ + + def post(self, command, output_dir, vars): + """ + called after the template is applied + """