Skip to content

Commit 89a4c57

Browse files
committed
Bump to 0.12.0.
1 parent e683fae commit 89a4c57

File tree

5 files changed

+14
-6
lines changed

5 files changed

+14
-6
lines changed

CHANGELOG.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
# Changelog
22

3+
## 0.12.0
4+
5+
- Self-closing `dj-block` tag; `<dj-block name='content' />` would translate to `{% block content %}{% endblock content %}`.
6+
- Handle template includes that begin with an underscore; `<dj-partial />` would translate to, in order, either `partial.html` or `_partial.html` depending on which template file was found.
7+
38
## 0.11.0
49

5-
- Use the start tag's `name` for `</dj-block>` if possible.
10+
- Use the start tag's `name` for `dj-block` end tag if possible.
611

712
## 0.10.0
813

docs/source/changelog.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
# Changelog
22

3+
## 0.12.0
4+
5+
- Self-closing `dj-block` tag; `<dj-block name='content' />` would translate to `{% block content %}{% endblock content %}`.
6+
- Handle template includes that begin with an underscore; `<dj-partial />` would translate to, in order, either `partial.html` or `_partial.html` depending on which template file was found.
7+
38
## 0.11.0
49

5-
- Use the start tag's `name` for `</dj-block>` if possible.
10+
- Use the start tag's `name` for `dj-block` end tag if possible.
611

712
## 0.10.0
813

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "dj-angles"
33
authors = [
44
{name = "Adam Hill", email = "[email protected]"}
55
]
6-
version = "0.11.0"
6+
version = "0.12.0"
77
description = "Add more bracket angles to Django templates </>"
88
readme = "README.md"
99
license = {file = "LICENSE"}

src/dj_angles/mappers/angles.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
from typing import TYPE_CHECKING
22

3-
from django.template import engines
4-
from django.template.exceptions import TemplateDoesNotExist
53
from minestrone import HTML
64

75
from dj_angles.mappers.include import get_include_template_file, map_include

uv.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)