{% match avatar_type %} {% when AvatarType::Initial with (initial) %} {% when AvatarType::Image with (src) %} {% endmatch %}