Skip to content

{% include %} inside {% set %} does not work :( #5

@anton-staroverov

Description

@anton-staroverov

Describe the bug
{% include %} inside {% set %} does not work at all:

{% set content %}
  {% include '../../gallery/gallery-preview.twig' %}
{% endset %}

See source here: https://github.com/highweb/bricks-examples/blob/7536ee4ac057c0a6ff7e005d01a6682d086e00ed/gallery-carousel/gallery-carousel.twig#L16

Getting "Unable to find template file ../../gallery/gallery-preview.twig" error.

To Reproduce
Steps to reproduce the behavior:

  1. Put any {% include %} tag in {% set %} tag.
  2. Go to Storybook.
  3. See error

Any suggestions/ideas? Is it related to Webpack config, Twig.js implementation, or something else?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions