aboutsummaryrefslogtreecommitdiffstats
path: root/testing/templates/if-let-else.html
blob: e6b43ca31a03a769ec99d1aca71c587927d428db (plain) (blame)
1
2
3
4
5
6
7
{%- if !cond -%}
    !cond
{%- else if let Ok(ok) = value -%}
    {{ ok }}
{%- else if let Err(err) = value -%}
    {{ err }}
{%- endif -%}