view 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 source

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
        """