![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
jinja
mark_GJ
这个作者很懒,什么都没留下…
展开
-
jinja 链接
http://docs.jinkan.org/docs/jinja2/ jinja中文文档链接原创 2020-04-19 13:06:54 · 133 阅读 · 0 评论 -
jinja-3 url
超级链接 .py #传参 @app.route('/trans/') def trans(): #常用字典传 context={ 'age':19, 'title':'gaojian' } return render_template(r'trans.html',**context) #**context 等于age=18,title...原创 2020-04-19 12:55:03 · 239 阅读 · 0 评论 -
jinja学习-2传参
通常字典传 .py #传参 @app.route('/trans/') def trans(): #常用字典传 context={ 'age':19, 'title':'gaojian' } return render_template(r'trans.html',**context) #**context 等于age=18,titl...原创 2020-04-19 12:28:35 · 271 阅读 · 0 评论 -
jinja学习-1
主要认识模板的demo和路径 main.py # -*- coding: utf-8 -*- from flask import Flask, render_template app = Flask(__name__) #如果想修改templates的路径,用这个参数 template_folder="templates"修改 #加载默认的templates下的html #网址 @app.rou...原创 2020-04-19 11:28:43 · 152 阅读 · 0 评论