博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
模版include的用法
阅读量:4604 次
发布时间:2019-06-09

本文共 574 字,大约阅读时间需要 1 分钟。

from flask import Flask,render_templateapp = Flask(__name__)@app.route('/')def hello_world():    return render_template('include.html')if __name__ == '__main__':    app.run(debug=True)
    
知了课堂#主模板 {
% include 'common/header.html' %}
中间的
{
% include 'common/footer.html' %}

#header公用的部分封装起来 
#footer公用的部分封装 

 

转载于:https://www.cnblogs.com/wuheng-123/p/9679740.html

你可能感兴趣的文章
强哥PHP面向对象学习笔记
查看>>
[转]基于.NET平台常用的框架整理
查看>>
Symbian (Read Inbox)读取收件箱的内容
查看>>
良好的编程规范
查看>>
struts2 入门
查看>>
.net 编译原理
查看>>
mean 快速开发和现有技术的对比分析
查看>>
Metro Style app :浏览器扩展
查看>>
linux的kernel是怎样工作的(TI_DM36X_ARM系统)(1)
查看>>
[luogu4310] 绝世好题 (递推)
查看>>
[luogu3203 HNOI2010] 弹飞绵羊 (分块)
查看>>
-Dmaven.multiModuleProjectDirectory system propery is not set.
查看>>
Python2 unichr() 函数
查看>>
Python 字典 copy()方法
查看>>
Minimum Path Sum
查看>>
Remove Duplicates from Sorted Array II
查看>>
常量指针和指针常量巧妙记忆方法[转]
查看>>
python-haproxy作业讲解视频总结
查看>>
mui搜索框 搜索点击事件
查看>>
select2 下拉搜索控件
查看>>