📜  twig 默认 - Html 代码示例

📅  最后修改于: 2022-03-11 14:53:26.802000             🧑  作者: Mango

代码示例1
{{ var|default('var is not defined') }}

{{ var.foo|default('foo item on var is not defined') }}

{{ var['foo']|default('foo item on var is not defined') }}

{{ ''|default('passed var is empty')  }}