rybakit / twig-deferred-extension

An extension for Twig that allows to defer block rendering.
MIT License
108 stars 3 forks source link

Deferred blocks broken with twig/twig 3.9.0/3.9.1 #20

Open fashxp opened 7 months ago

fashxp commented 7 months ago

Template:

<html>

<body>
    {% block content deferred %}
        <h1>hello world</h1>
    {%  endblock %}
</body>

</html>

Error message:

image

example works with twig/twig < 3.9.0

see also https://github.com/twigphp/Twig/issues/4026

mike4git commented 7 months ago

It also breaks with version 3.9.2

markus-moser commented 3 months ago

Are there any plans to make this extension compatible with twig >= 3.9.0? Not sure if this is possible with the new architecture of twig...

rybakit commented 3 months ago

Are there any plans to make this extension compatible with twig >= 3.9.0? Not sure if this is possible with the new architecture of twig...

@markus-moser To be honest, I haven't had the time to explore this fully yet. However, I'm open to contributions if anyone is willing to investigate and work on compatibility.