Django Book 翻译
菜单>:
TOC
返回
原文:
The ``{% if %}`` tag evaluates a variable, and if that variable is true (i.e., it exists, is not empty, and is not a false Boolean value), the contents of the block are output:
翻译:
``{% if %}`` 标签测试一个变量,若变量为真(即其存在、非空,且不是一个为假的布尔值),区块中的内容就会被输出:
备注:
译者: