From 89a4c579089443399c72b15da0737354417f2f1d Mon Sep 17 00:00:00 2001 From: adamghill Date: Mon, 11 Nov 2024 19:48:29 -0500 Subject: [PATCH] Bump to 0.12.0. --- CHANGELOG.md | 7 ++++++- docs/source/changelog.md | 7 ++++++- pyproject.toml | 2 +- src/dj_angles/mappers/angles.py | 2 -- uv.lock | 2 +- 5 files changed, 14 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ef780cd..2d42057 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,13 @@ # Changelog +## 0.12.0 + +- Self-closing `dj-block` tag; `` would translate to `{% block content %}{% endblock content %}`. +- Handle template includes that begin with an underscore; `` would translate to, in order, either `partial.html` or `_partial.html` depending on which template file was found. + ## 0.11.0 -- Use the start tag's `name` for `` if possible. +- Use the start tag's `name` for `dj-block` end tag if possible. ## 0.10.0 diff --git a/docs/source/changelog.md b/docs/source/changelog.md index ef780cd..2d42057 100644 --- a/docs/source/changelog.md +++ b/docs/source/changelog.md @@ -1,8 +1,13 @@ # Changelog +## 0.12.0 + +- Self-closing `dj-block` tag; `` would translate to `{% block content %}{% endblock content %}`. +- Handle template includes that begin with an underscore; `` would translate to, in order, either `partial.html` or `_partial.html` depending on which template file was found. + ## 0.11.0 -- Use the start tag's `name` for `` if possible. +- Use the start tag's `name` for `dj-block` end tag if possible. ## 0.10.0 diff --git a/pyproject.toml b/pyproject.toml index 9121f70..97dfba5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ name = "dj-angles" authors = [ {name = "Adam Hill", email = "adam@adamghill.com"} ] -version = "0.11.0" +version = "0.12.0" description = "Add more bracket angles to Django templates " readme = "README.md" license = {file = "LICENSE"} diff --git a/src/dj_angles/mappers/angles.py b/src/dj_angles/mappers/angles.py index 8b5be95..88a0f62 100644 --- a/src/dj_angles/mappers/angles.py +++ b/src/dj_angles/mappers/angles.py @@ -1,7 +1,5 @@ from typing import TYPE_CHECKING -from django.template import engines -from django.template.exceptions import TemplateDoesNotExist from minestrone import HTML from dj_angles.mappers.include import get_include_template_file, map_include diff --git a/uv.lock b/uv.lock index cfbd7e8..c87d382 100644 --- a/uv.lock +++ b/uv.lock @@ -222,7 +222,7 @@ toml = [ [[package]] name = "dj-angles" -version = "0.11.0" +version = "0.12.0" source = { editable = "." } dependencies = [ { name = "django", marker = "python_full_version >= '3.10'" },