{% assign id = include.id | default: include.key %} {% assign value = include.value %} {% if id %} {% assign key = include.key | default: 'people' %} {% assign data = selects[key] %} {% capture script %} {%- endcapture %} {% if include.show-scripts %} {{ script }} {% else %} {% capture_script %} {{ script }} {% endcapture_script %} {% endif %} {% endif %}