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

@ -992,7 +992,7 @@ class TemplatingTestCase(unittest.TestCase):
def test_custom_template_loader(self):
class MyFlask(flask.Flask):
def create_jinja_loader(self):
def create_global_jinja_loader(self):
from jinja2 import DictLoader
return DictLoader({'index.html': 'Hello Custom World!'})
app = MyFlask(__name__)