{% set variant = variant|default('info') %} {% set timeout = timeout|default(variant == 'success' ? 5000 : (variant == 'error' ? 10000 : 7000)) %}