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

Test collectPartials(), ignore @partial-block #3

Merged
merged 1 commit into from
Jan 6, 2024

Conversation

mbland
Copy link
Owner

@mbland mbland commented Jan 6, 2024

While adding tests for PartialCollector, it became apparent that wrapping it in collectPartials() made both the tests and the production code more concise.

As expected, the code already handled block partials and ignored dynamic and inline partials. But while reading the partials documentation, I discovered that the code didn't yet handle @partial-block:

It proved easy enough to test and fix.

While adding tests for PartialCollector, it became apparent that
wrapping it in collectPartials() made both the tests and the production
code more concise.

As expected, the code already handled block partials and ignored dynamic
and inline partials. But while reading the partials documentation, I
discovered that the code didn't yet handle `@partial-block`:

- https://handlebarsjs.com/guide/partials.html

It proved easy enough to test and fix.
@mbland mbland self-assigned this Jan 6, 2024
@mbland mbland merged commit 196aa3a into main Jan 6, 2024
3 checks passed
@mbland mbland deleted the add-and-test-collectpartials branch January 6, 2024 15:32
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.

None yet

1 participant