Add a new signal generator_init, invoked at the end of Generator.__init__.

This commit is contained in:
Simon 2012-11-20 00:07:44 +01:00
commit 09c893f3a3
3 changed files with 4 additions and 0 deletions

View file

@ -61,6 +61,8 @@ class Generator(object):
custom_filters = self.settings.get('JINJA_FILTERS', {})
self.env.filters.update(custom_filters)
signals.generator_init.send(self)
def get_template(self, name):
"""Return the template by name.
Use self.theme to get the templates to use, and return a list of