Skip to content

Commit 59e2665

Browse files
add html-django language id (#67)
1 parent 680df1d commit 59e2665

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ and this project attempts to adhere to [Semantic Versioning](https://semver.org/
1818

1919
## [Unreleased]
2020

21+
### Added
22+
23+
- Added `html-django` as an alternative Language ID for Django templates
24+
2125
## [5.1.0a2]
2226

2327
### Added

crates/djls-server/src/documents.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ pub enum LanguageId {
314314
impl From<&str> for LanguageId {
315315
fn from(language_id: &str) -> Self {
316316
match language_id {
317-
"htmldjango" => Self::HtmlDjango,
317+
"django-html" | "htmldjango" => Self::HtmlDjango,
318318
"python" => Self::Python,
319319
_ => Self::Other,
320320
}

0 commit comments

Comments
 (0)