# HG changeset patch # User Jeff Hammel # Date 1294352751 28800 # Node ID 728cae02a6edd05a1f5209e779e83cd6752fd19b # Parent b087a14a664ba015cb2a365a335d231e54753e52 * fix another variable-related bug * API templates may have descriptions (and *should*!) diff -r b087a14a664b -r 728cae02a6ed makeitso/makeitso.py --- a/makeitso/makeitso.py Thu Jan 06 14:15:19 2011 -0800 +++ b/makeitso/makeitso.py Thu Jan 06 14:25:51 2011 -0800 @@ -200,6 +200,7 @@ if shebang_re.match(content): content = os.linesep.join(content.splitlines()[1:]) + variables = variables or {} variables['here'] = parent_uri(uri) ContentTemplate.__init__(self, content, name=uri, interactive=interactive, diff -r b087a14a664b -r 728cae02a6ed makeitso/template.py --- a/makeitso/template.py Thu Jan 06 14:15:19 2011 -0800 +++ b/makeitso/template.py Thu Jan 06 14:25:51 2011 -0800 @@ -50,6 +50,9 @@ # name of the template name = '' + # description of the template + description = '' + # templates to interpolate # paths are relative to __file__ unless absolute or URIs templates = []