{"categories":[{"label":"Dynamic Content","url":"https://skillfed.io/packages/category/internet-www-http-dynamic-content/3"}],"enrichment":{"capability":"Provides reusable named template partials for Django's template language, allowing you to define and invoke template fragments inline within templates or via the template loader.","skillfed_tags":["django-templates","template-reuse"],"use_cases":["Reduce template duplication by defining a reusable widget (e.g., pagination, card component) once and rendering it multiple times across a page.","Render a specific partial from a template via the loader interface in a view, without rendering the entire template.","Wrap existing page fragments with `inline` partials to keep related markup organized without creating separate template files.","Loop over a list of objects and render the same partial for each item with the loop context automatically available.","Include a named partial from another template using the `include` tag with fragment syntax (e.g., `{% include \"other.html#partial-name\" %}`)."],"what_it_does":"django-template-partials is a Django app that adds reusable named partials to the Django Template Language. You define a partial once with `{% partialdef %}...{% endpartialdef %}` and invoke it multiple times with `{% partial %}` tags. The package integrates with Django's template loader, so you can also reference partials via URL-style syntax (e.g., `\"example.html#test-partial\"`), and it supports context control via Django's `{% with %}` tag.\n\nThe package is positioned as a backport or enhancement for Django versions before 6.0, which added native template partials support. For new projects on Django 6.0 or later, the built-in feature is recommended; for older versions or projects needing the package's specific loader integration, it provides a stable, low-dependency solution. It requires only Django and has no other runtime dependencies.","worth_installing":"Yes, if you are on Django versions before 6.0 or need the template loader integration for partial rendering. The package is stable (Production/Stable status), has no known vulnerabilities, and low install friction. However, if you are starting a new project on Django 6.0 or later, use Django's native template partials instead. For existing projects on older Django versions, this is a solid, well-maintained choice."},"id":"django-template-partials","links":{"html":"https://skillfed.io/packages/django-template-partials","md":"https://skillfed.io/packages/django-template-partials.md","pypi":"https://pypi.org/project/django-template-partials/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-11-14","license_spdx":null,"license_treatment":"permissive","name":"django-template-partials","python_support":"unspecified","summary":"Reusable named inline-partials for the Django Template Language"},"popularity":{"monthly_downloads":201578,"position":9668,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"25.3"}
