I've got some component button:
{% assign class = "c-button " | append: include.class %}
{% assign type = include.type | default: "button" %}
{% assign content = include.content %}
{% if content %}
<button class="{{ class }}"
type="{{ type }}">{{ content }}</button>
{% endif %}
Now i want include a button with some values and content out an array:
{% include components/button.html
type = "button"
content = site.data.contentful.spaces.links.navbar[0].item_name
class = "pretty-button"
%}
I receive this error:
Liquid Exception: Invalid syntax for include tag: type = "button" content = site.data.contentful.spaces.links.navbar.[0] class = "pretty-button" Valid syntax: {% include file.ext param='value' param2='value' %}
Is it not possible to assign an array value to a include variable?
Thanx for any help!