Coder Social home page Coder Social logo

Comments (4)

greyli avatar greyli commented on August 20, 2024

你好,看到了你创建的其他几个issue,很感谢花时间反馈这些问题。因为人在外地,其他几个问题需要回到家看书确认一下再处理,见谅。

如果你在Jinja文档里搜索一下,其实tag使用的频率更高。statement有些地方是单独作为Python层面上的语句来使用的。相比之下,tag更不容易发生歧义。比如,{% if statement %}if statement
虽然表示两种含义,但因为使用相同的单词,所以容易混淆。

from helloflask.

waynerv avatar waynerv commented on August 20, 2024

谢谢作者耐心解答,我之前一直在学习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.

greyli avatar greyli commented on August 20, 2024

不客气,有问题尽管创建issue,有时间我会一一处理。

from helloflask.

greyli avatar greyli commented on August 20, 2024

pallets/jinja#914 把你提到的那段描述里的 statement 改成 tag 了。

from helloflask.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.