Mercurial > hg > MakeItSo
diff makeitso/template.py @ 101:80a57bf2b7f4
fixed a few problems
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Tue, 11 Jan 2011 14:23:17 -0800 |
parents | b54898f7d8a9 |
children | 51c9cb49edec |
line wrap: on
line diff
--- a/makeitso/template.py Tue Jan 11 12:04:25 2011 -0800 +++ b/makeitso/template.py Tue Jan 11 14:23:17 2011 -0800 @@ -160,14 +160,14 @@ return missing - def pre(self, variables): + def pre(self, variables, output): """do stuff before interpolation""" def substitute(self, variables, output=None): """do the substitution""" vars = self.get_variables(**variables) - self.pre(vars) + self.pre(vars, output) self.check_missing(vars) # do the substitution @@ -177,9 +177,9 @@ template.check_output(output) template.substitute({}, output) - self.post(vars) + self.post(vars, output) - def post(self, variables): + def post(self, variables, output): """do stuff after interpolation""" def read_variables(self, variables):