Exciting to see people start to pick up template-partials with Django 6.0.

“Wait until you hit upon using them for form field templates”, I quietly whisper 🥳

@carlton if you want to define a partial in a separate file for reuse across your app, what is the pattern for that? The docs seem to demonstrate definition and use within the same file?
@onionarmy that would just be an include, same as ever.

@carlton hm.. I see the docs mention; "Template partials can also be included using the include template tag with the same # directive:"

Though I still get "Partial 'journal-metadata' is not defined in the current template."

That's with using;

{% include "example.html#journal-metadata" %}

I have to dig further into that.

But do partials have to be included one by one? Can you import all partials in bulk?

Something like:

{% include "example.html %}

?

@onionarmy you reference them by name individually. I’d just suggest you play with them. They’re fun! 🤩
@carlton hm.. for some reason the include syntax for partials doesn't load the partials for me. Doing a normal include of the file that contains it works, so the template file is found.
I'll ask in the forums.