Skip to content
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

Expected behaviour for multiple sections build over multiple layouts #320

Open
RobinDev opened this issue Oct 5, 2023 · 1 comment
Open

Comments

@RobinDev
Copy link

RobinDev commented Oct 5, 2023

Example will be more explicit 👍

  • I have template files :
<!-- test.html.php -->
<?= $this->section('exampleSection')?>
<!-- test2.html.php -->
<?php $this->layout('test.html') ?>


<?= $this->start('exampleSection')?>
    From test2.html
<?= $this->stop()?>
<!-- test3.html.php -->
<?php $this->layout('test2.html') ?>


<?= $this->start('exampleSection')?>
    From test3.html
<?= $this->stop()?>

I may expect this result if I render test3.html.php :

    From test3.html

I get :

    From test2.html

When Plates was designed, what was the expected result for some kind for code ?
( I can do a PR, but I think it must be discussed about the expected behaviour, I am switching from twig to plates so I try to find some similar logical).

@RobinDev RobinDev changed the title Expected behaviour for multiple section build over layout Expected behaviour for multiple sections build over layout Oct 5, 2023
@RobinDev RobinDev changed the title Expected behaviour for multiple sections build over layout Expected behaviour for multiple sections build over multiple layouts Oct 5, 2023
@RobinDev
Copy link
Author

RobinDev commented Oct 5, 2023

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