Allow custom template dirs for extensions

This commit is contained in:
2016-09-06 18:39:35 +02:00
parent eac49ab810
commit 4ae36a0dc3
2 changed files with 28 additions and 1 deletions

View File

@@ -63,5 +63,14 @@ class PillarExtension(object):
:rtype: dict
"""
@property
def template_path(self):
"""Returns the path where templates for this extension are stored.
Note that this path is not connected to any blueprint, so it is up to
the extension to provide extension-unique subdirectories.
"""
return None
def setup_app(self, app):
"""Called during app startup, after all extensions have loaded."""