Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jinja2语法小记 | Shan San #8

Closed
yeshan333 opened this issue Feb 5, 2019 · 0 comments
Closed

Jinja2语法小记 | Shan San #8

yeshan333 opened this issue Feb 5, 2019 · 0 comments

Comments

@yeshan333
Copy link
Owner

https://ssmath.github.io/2019/01/09/Jinja2%E8%AF%AD%E6%B3%95%E5%B0%8F%E8%AE%B0/

在Jinja2中,语句使用**{% raw %}{% ... %}{% endraw %}**标识

在语句结束的地方,必须添加结束标签

  • if语句使用endif
  • for语句使用endfor
{% if use
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant