Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ and this project attempts to adhere to [Semantic Versioning](https://semver.org/

## [Unreleased]

### Added

- Added `html-django` as an alternative Language ID for Django templates

## [5.1.0a2]

### Added
Expand Down
2 changes: 1 addition & 1 deletion crates/djls-server/src/documents.rs
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ pub enum LanguageId {
impl From<&str> for LanguageId {
fn from(language_id: &str) -> Self {
match language_id {
"htmldjango" => Self::HtmlDjango,
"django-html" | "htmldjango" => Self::HtmlDjango,
"python" => Self::Python,
_ => Self::Other,
}
Expand Down
Loading