forked from orbit-oss/flask
Chnaged a bunch of behavior in blueprints for it to be more flexible. Improved backwards compat.
This commit is contained in:
parent
59a92ebd71
commit
abe1378cae
6 changed files with 50 additions and 54 deletions
|
|
@ -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__)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue