Skip to content

Commit 5ba8500

Browse files
add support for djhtml file extension (#301)
1 parent b8a5f24 commit 5ba8500

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/djls-source/src/file.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ impl From<&str> for FileKind {
118118
fn from(value: &str) -> Self {
119119
match value {
120120
"py" => FileKind::Python,
121-
"html" | "htm" => FileKind::Template,
121+
"djhtml" | "html" | "htm" => FileKind::Template,
122122
_ => FileKind::Other,
123123
}
124124
}

0 commit comments

Comments
 (0)