Skip to content

Jinja support #247

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
wants to merge 21 commits into from
Closed

Conversation

CuriousLearner
Copy link
Contributor

@CuriousLearner CuriousLearner commented Jun 21, 2024

Description

Adds Jinja support to the django-pattern-library. It is based on @gone's work and will superseed #206.

Fixes #171 -> Discussion #180

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have added an appropriate CHANGELOG entry

@CuriousLearner
Copy link
Contributor Author

@thibaudcolas / @zerolab Gentle ping to see this. I've updated this branch to the latest.

@thibaudcolas
Copy link
Member

@CuriousLearner I’m in the process of testing this – it feels very close!

Copy link
Member

@thibaudcolas thibaudcolas left a comment

Choose a reason for hiding this comment

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

As far as I can see this largely works as expected, however it’s missing documentation, tests, and support for tags overrides. I think this can get merged as-is (or close), but I will have to mention Jinja support as "experimental" until we have better tests for it.

@@ -46,7 +46,7 @@ exclude = [
python = "^3.8"
Django = ">=3.2,<5.1"
PyYAML = ">=5.1,<7.0"
Markdown = "^3.1"
Markdown = "^3.5.1"
Copy link
Member

Choose a reason for hiding this comment

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

This doesn’t seem related?

@thibaudcolas thibaudcolas added enhancement New feature or request django Related to Django templates capabilities labels Apr 8, 2025
@thibaudcolas thibaudcolas mentioned this pull request Apr 8, 2025
8 tasks
@thibaudcolas
Copy link
Member

Shipped in #254!

@thibaudcolas thibaudcolas mentioned this pull request Apr 15, 2025
8 tasks
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
django Related to Django templates capabilities enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Jinja2 support plan
7 participants