diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/firefoxaddon/__init__.py	Sun Mar 28 16:25:58 2010 -0400
@@ -0,0 +1,22 @@
+from paste.script import templates
+
+var = templates.var
+
+class FirefoxAddon(templates.Template):
+    _template_dir = 'template'
+    summary = 'template for a firefox addon'
+    vars = [
+        var('description', 'One-line description of the package'),
+        var('author', 'Author name'),
+        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
+        """