📜  twig ternaire - CSS 代码示例

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

代码示例1
{{ foo ? 'yes' : 'no' }}
{{ foo ?: 'no' }} is the same as {{ foo ? foo : 'no' }}
{{ foo ? 'yes' }} is the same as {{ foo ? 'yes' : '' }}