django templates

# marco
 
there is no marco in django template, you just have to use include with parameters

“`
{% include “marco.html” with arg=parameter %}
“`

# variable

“`
{{ my_dict.key }}
{{ my_object.attribute }}
{{ my_list.0 }}
“`

If a variable resolves to a callable, the template system will call it with no arguments and use its result instead of the callable.

# tags

# filters

About 逸飞

后端工程师

发表评论

电子邮件地址不会被公开。 必填项已用*标注