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 Slippers component syntax #87

Merged
merged 1 commit into from
Mar 4, 2023
Merged

Conversation

jnns
Copy link
Contributor

@jnns jnns commented Feb 28, 2023

I took a swing at implementing support for Slipper's tag syntax.

Initially I looked at whether it would be possible to make Slippers understand regular Django Template Language block tags ({% component %}{% endcomponent %} instead of {% #component %}{% /component %}). But the parser needs to know whether a tag contains child elements or not from the opening tag alone (because {% component %} on its own is also possible).

So I decided to add support for Slippers in DjHTML. Let me know what you think.

Closes #86.

Copy link
Member

@JaapJoris JaapJoris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much for this PR. It implements Slippers support quite elegantly, without affecting the other use cases for DjHTML. Approved!

@JaapJoris JaapJoris merged commit ca02cd8 into rtts:main Mar 4, 2023
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.

Support for Slippers' reusable component syntax
2 participants