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

Add support for partial blocks #78

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zwade
Copy link

@zwade zwade commented Oct 13, 2022

Hi, I'm interested in adding partial block support to pybars3 for use in one of my projects! This is my first time contributing to pybars so I'm not sure what the current status of external contributions is, but if you're willing to accept contributions I'm happy to work within your guidelines & best practices!

This PR adds in support for the partial block feature of handlebar. It adds the bear minimum functionality, namely fallbacks for missing templates and the use of the special {{> @partial-block}} partial for embedding content from caller to callee.

Let me know if this is something you're willing to include in the library, and what additional changes are needed to get there.

Thanks!

(addresses #72)

* Supports partial blocks for use with fallbacks
* Supports partial blocks with the {{> @partial-block }} template
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

Successfully merging this pull request may close these issues.

1 participant