templates/default/components/organisms/storyblok/storyblok.html.twig line 1

Open in your IDE?
  1. {% for component in componentData %}
  2. {% try %}
  3. {% if component is defined and component is iterable %}
  4. {% if component.component == 'widget-reference' and componentConfig is defined %}
  5. {% set config = {
  6. componentConfig: componentConfig
  7. } %}
  8. {% elseif componentConfig[component.component] is defined %}
  9. {% set config = componentConfig[component.component] %}
  10. {% endif %}
  11. {% set innerHtml %}
  12. {{ render_storyblok(component, config|default([])) }}
  13. {% endset %}
  14. {% if component.inContainer is defined and component.inContainer == true %}
  15. <div class="grid">
  16. <div class="grid__column grid__column-12">
  17. {{ innerHtml }}
  18. </div>
  19. </div>
  20. {% else %}
  21. {{ innerHtml }}
  22. {% endif %}
  23. {% endif %}
  24. {% catch %}
  25. {{ logException(e) }}
  26. {% endcatch %}
  27. {% endfor %}