Skip to content

Empty output of extended template with block inside capture #227

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
zdenekzahor opened this issue Jun 22, 2020 · 0 comments
Closed

Empty output of extended template with block inside capture #227

zdenekzahor opened this issue Jun 22, 2020 · 0 comments

Comments

@zdenekzahor
Copy link

Version: 2.8.1

Bug Description

(see https://forum.nette.org/cs/33497-latte-block-uvnitr-capture-zpusobi-bilou-stranku)

Steps To Reproduce

  1. composer require latte/latte:^2.8

  2. create file layout.latte:

    {include content}
  3. create file default.latte:

    {extends @layout.latte}
    
    {capture $foo}
        {block bar}
            baz
        {/block}
    {/capture}
    
    {block content}
    content text
    
  4. php -r 'require __DIR__ . "/vendor/autoload.php"; $engine = new Latte\Engine; $engine->render("default.latte");'

Expected Behavior

Exception or result: content text (?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant