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

V4 Sections #169

Closed
3 tasks done
ragboyjr opened this issue Nov 27, 2017 · 3 comments
Closed
3 tasks done

V4 Sections #169

ragboyjr opened this issue Nov 27, 2017 · 3 comments
Milestone

Comments

@ragboyjr
Copy link
Contributor

ragboyjr commented Nov 27, 2017

  • Any template or child can define a section.
  • Sections will be merged up with parent templates
  • Sections should be defined in order of definition. (this item needs to be clearly defined and documented)
@ragboyjr
Copy link
Contributor Author

#143 #47 are currently working now in the v4-dev branch.

@ragboyjr
Copy link
Contributor Author

I think for the alternative syntax, we should introduce a new func named block, this will just have different semantics than the section func.

It'll work something like:

<?php if ($v->block('section-name')): ?>
// define the default block here
<?php endif; ?>

@ragboyjr
Copy link
Contributor Author

See #175

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