We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Considering that
contentFor
header
footer
div
Than I infer that we should have a way to use some kind of if statement to check if we should add a region code with its wrapper inside our html.
if
That's an example to express my idea:
<template name="MyLayout"> <h1>My Layout</h1> <div> {{> yield}} </div> {{#if [THE FOOTER CONTENT HAS BEEN DEFINED]}} <footer> {{> yield region="footer"}} </footer> {{/if}} </template>
Is there a way to do it now? If not, is it possible for us to implement it, and what would be a good "syntax" for that?
The text was updated successfully, but these errors were encountered:
Hi @zvictor - check out the pass-regions-as-arguments branch.
The API isn't totally decided yet, but as it stands, it adds 3 features:
{{#Layout regionName='templateName'}}
{{#if hasYield}}
{{yield region='regionName' text=true}}
Give it a try. I'd love to hear feedback on any issues and also what you think about the API.
Sorry, something went wrong.
No branches or pull requests
Considering that
contentFor
we have a wrapper around it (usually aheader
,footer
or just adiv
with some classes);Than I infer that we should have a way to use some kind of
if
statement to check if we should add a region code with its wrapper inside our html.That's an example to express my idea:
Is there a way to do it now? If not, is it possible for us to implement it, and what would be a good "syntax" for that?
The text was updated successfully, but these errors were encountered: