{% match item %} {% when Some with ("foo") %} Found literal foo {% when Some with (val) %} Found {{val}} {% when None %} Not Found {% endmatch %}