def test_macros(self):
app = flask.Flask(__name__)
with app.test_request_context():
macro = flask.get_template_attribute('_macro.html', 'hello')
self.assert_equal(macro('World'), 'Hello World!')
templating.py 文件源码
python
阅读 35
收藏 0
点赞 0
评论 0
评论列表
文章目录