Skip to content

Instantly share code, notes, and snippets.

@ryanneufeld
Last active August 29, 2015 14:05
Show Gist options
  • Select an option

  • Save ryanneufeld/4cb2aeb84fe0cadf39f9 to your computer and use it in GitHub Desktop.

Select an option

Save ryanneufeld/4cb2aeb84fe0cadf39f9 to your computer and use it in GitHub Desktop.
{
"attrs": {
"see": "https://example.com",
},
"attrs2": {
"see":
[
"https://example.com",
"https://example.com/two",
],
}
}
{% for attr in bundle.attrs %}{{attr}}:
{{bundle.attrs[attr]|count}}
{% if bundle.attrs.attr is mapping %}
attr is mapping
{% else %}
attr is not mapping
{% endif %}
{% endfor %}
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment