Comments (4)
你好,看到了你创建的其他几个issue,很感谢花时间反馈这些问题。因为人在外地,其他几个问题需要回到家看书确认一下再处理,见谅。
如果你在Jinja文档里搜索一下,其实tag使用的频率更高。statement有些地方是单独作为Python层面上的语句来使用的。相比之下,tag更不容易发生歧义。比如,{% if statement %}
和if
statement
虽然表示两种含义,但因为使用相同的单词,所以容易混淆。
from helloflask.
谢谢作者耐心解答,我之前一直在学习python,对html还不太熟悉。
查阅文档发现在Template章节开头有这样一段:
A template contains variables and/or expressions, which get replaced with values when a template is rendered; and tags, which control the logic of the template. The template syntax is heavily inspired by Django and Python.
看来官方文档对控制语句的定义确实是tag,谢谢作者耐心解答。
我基础较薄弱,看书过程中疑问较多,个别找不到答案的就草率提了issue,还望见谅。
from helloflask.
不客气,有问题尽管创建issue,有时间我会一一处理。
from helloflask.
在 pallets/jinja#914 把你提到的那段描述里的 statement 改成 tag 了。
from helloflask.
Related Issues (20)
- Albumy 探索 报错 AttributeError: 'WhoosheeQuery' object has no attribute '_join_entities' HOT 6
- Pocoo 旧链接更新 HOT 1
- 7.6 P215 关于 Flask-DebugToolbar 的描述笔误 HOT 2
- 【勘误】行内验证器validate_字段属性名的参数问题 HOT 1
- SQLAlchemy + SQLite3 设置的字符长度限制不会生效 HOT 1
- Todoism 设置FLASK_RUN_HOST 0.0.0.0 无法显示页面内容
- is:issue is:open 按照书中,切换到spa分支后,运行flask --help没有初始数据库的命令,是因为没使用pipenv 吗
- 【勘误】16.4.2 代码清单16-15笔误 HOT 1
- 【勘误】16.4.3 代码清单16-18笔误 HOT 1
- Windbreaker
- 【勘误】Bootstrap_Form宏render_form参数传递方式错误 HOT 1
- pipfile 在哪里?我怎么找不到 HOT 3
- 1.2.2路由章节 HOT 1
- IndustrialStatistics
- H
- 无法在python中直接使用escape HOT 3
- 使用pipenv环境运行第一个项目hello报错,使用conda环境程序正常运行,哪里还需要配置? HOT 3
- :p
- Title '
- My project
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from helloflask.