carltongibson / django-template-partials

Reusable named inline partials for the Django Template Language.
MIT License
387 stars 15 forks source link

Jinja support #35

Closed jgillard closed 4 months ago

jgillard commented 4 months ago

Firstly thanks for this package! I was eager to try it out having read about this and django-render-blocks and watching your talk, but bumped straight into Jinja support as a blocker. I've spent an hour or so digging into this, but I've never looked under the hood at the differences between DTL and Jinja inside Django before, and we additionally use django-jinja which adds an extra layer of complexity, so I came away not much wiser about what it would take to make this work. I'd be eager to hear about whether this is supported as maybe it's django-jinja getting in my way, or whether this would require future work on this package to support.

carltongibson commented 4 months ago

Hi @jgillard.

django-template-partials is just for the Django Template Language. (I'm afraid I'm not a big Jinja user.)

@mikeckennedy has a package for Jinja you can find here: https://github.com/mikeckennedy/jinja_partials