Skip to content

Commit 7bb9904

Browse files
remove renaming
1 parent f391e0d commit 7bb9904

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

crates/djls-template-ast/src/tagspecs.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ pub struct TagSpec {
1010
#[serde(rename = "type")]
1111
pub tag_type: TagType,
1212
pub closing: Option<String>,
13-
#[serde(rename = "intermediates")]
1413
pub branches: Option<Vec<BranchSpec>>,
1514
pub args: Option<Vec<ArgSpec>>,
1615
}

crates/djls-template-ast/tagspecs/django.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ closing = "endif"
44

55
# We keep the intermediates field name in TOML since we're using serde rename
66
# to map it to branches in the Rust code
7-
[[django.template.defaulttags.if.intermediates]]
7+
[[django.template.defaulttags.if.branches]]
88
name = "elif"
99
args = true
1010

11-
[[django.template.defaulttags.if.intermediates]]
11+
[[django.template.defaulttags.if.branches]]
1212
name = "else"
1313
args = false
1414

@@ -22,7 +22,7 @@ closing = "endfor"
2222

2323
# We keep the intermediates field name in TOML since we're using serde rename
2424
# to map it to branches in the Rust code
25-
[[django.template.defaulttags.for.intermediates]]
25+
[[django.template.defaulttags.for.branches]]
2626
name = "empty"
2727
args = false
2828

0 commit comments

Comments
 (0)