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

is there a way to use inline partials? #51

Open
unstoppablecarl opened this issue Sep 15, 2023 · 3 comments
Open

is there a way to use inline partials? #51

unstoppablecarl opened this issue Sep 15, 2023 · 3 comments

Comments

@unstoppablecarl
Copy link

unstoppablecarl commented Sep 15, 2023

handlebarsjs has an inline partials feature now. It would be nice to be able to do {{#embed 'my_inline_partial'}}{{/embed}}. Is there a different way to use them I'm missing?

Inline partials also do not appear to work from within a child context of a block or content or embed. Where the inline partial was defined in a parent context.

@shannonmoeller
Copy link
Owner

It's been a number of years since I've used Handlebars with any regularity, so I'm afraid I'm not up to speed on how newer versions of Handlebars maintain lists of partials. Given that Handlebars has this functionality built-in now, is handlebars-layouts still helpful?

@unstoppablecarl
Copy link
Author

I would say yes. Its got some slightly different abilities with extend vs embed. It would make more sense if it was something built ontop of the existing inline partials feature though

@shannonmoeller
Copy link
Owner

I'd be open to a PR if you wanted to dig into what it would take to update this library to be able to see those.

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

2 participants