Chnaged a bunch of behavior in blueprints for it to be more flexible. Improved backwards compat.

This commit is contained in:
Armin Ronacher 2011-06-16 23:55:49 +02:00
parent 59a92ebd71
commit abe1378cae
6 changed files with 50 additions and 54 deletions

View file

@ -11,7 +11,6 @@
import os
from .helpers import _PackageBoundObject, _endpoint_from_view_func
from .blueprints import Blueprint
@ -37,7 +36,7 @@ class Module(Blueprint):
'does not point to a submodule'
name = import_name.rsplit('.', 1)[1]
Blueprint.__init__(self, name, import_name, url_prefix=url_prefix,
subdomain=subdomain)
subdomain=subdomain, template_folder='templates')
if os.path.isdir(os.path.join(self.root_path, 'static')):
self._static_folder = 'static'