You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 3, 2026. It is now read-only.
When using template inheritance, Melody will omit anything except for top-level variable assignments (using {% set .... %}) that is not contained within a block.
Expected Behaviour
Melody should include all code that is non-rendering in its compilation.
Actual Behaviour
Melody only compiled top-level variable assignments.
Explain the problem
When using template inheritance, Melody will omit anything except for top-level variable assignments (using
{% set .... %}) that is not contained within a block.Expected Behaviour
Melody should include all code that is non-rendering in its compilation.
Actual Behaviour
Melody only compiled top-level variable assignments.
Steps to reproduce
bar.html.twig
{% extends "foo.html.twig" %} {% if bar %} {% set foo = "hello" %} {% endif %}foo.html.twig
{{ foo | default('Ciao') }}!!Rendering
bar.html.twigwithbarset totrueshould emithello!!but will instead emitCiao!!.Provide a repository that reproduces issue if possible
Provide your Environment details
any
any
any