DjLint Versions Save

✨ HTML Template Linter and Formatter. Django - Jinja - Nunjucks - Handlebars - GoLang

v1.29.0

1 year ago

1.29.0 (2023-05-22)

Bug Fixes

  • formatter: fix cases where ignore was still formatting set and function code (ab878ea), closes #659
  • formatter: fix extra parenth being added in a function call (faba4f4), closes #660
  • linter: fixed missing positive on a few <img rules (5f33d08)

Features

  • formatter: added option to disable newlines after yaml front matter (9bf64ac), closes #662
  • linter: allow codes to be ignored for remainder of file (4637a0f), closes #655

v1.28.0

1 year ago

1.28.0 (2023-05-18)

Bug Fixes

  • formatter: allow djlint:off to exluce the rest of a file (17faf5f), closes #649
  • formatter: don't add blank line to empty files (8ea5fd2), closes #635

Features

  • formatter: added ability to format objects/arrays in function tags (d446efc), closes #370
  • formatter: format set blocks (d88371c), closes #646

v1.27.2

1 year ago

1.27.2 (2023-05-11)

Bug Fixes

  • formatter: fixed an edge case wild regex grab (0d57e75), closes #640
  • formatter: fixed formatting of plural tag in blocktrans (92c083b), closes #641
  • formatter: fixed js/css being formatted even inside ignored blocks (cbf5796), closes #613
  • linter: fixed a few false positives/missing positives, added tests (30f8d31), closes #643 #642
  • linter: fixed false postive in alpinejs tags for H037 (6520f63), closes #639

v1.27.1

1 year ago

1.27.1 (2023-05-10)

Bug Fixes

  • formatter: fixed set_ tags being broken (5cf1e1c), closes #634
  • linter: fixed false positive on H037 (e65558c), closes #633

v1.27.0

1 year ago

1.27.0 (2023-05-09)

Bug Fixes

  • linter: fixed overly greedy H037, improved linter tests (66c9187), closes #631

Features

  • formatter: Add option to not condense multi-line-tags (4973a32)

v1.26.0

1 year ago

1.26.0 (2023-05-08)

Bug Fixes

  • blocktrans: fixes whitespace issues on blocktrans, allows indenting on blocktrans trimmed (249c8e8), closes #623

Features

  • formatter: added white space cleanup for template tags (13d0d4f), closes #485
  • linter: added rule H037 (6048c46)
  • void tags: added option to auto close void tags (linter rule H017) (9050d30), closes #252

v1.25.1

1 year ago

1.25.1 (2023-05-08)

Bug Fixes

  • js indent: fixed an issue where literal strings were double indented (b1e8ab2), closes #614
  • set: added formatting of json/list style set contents (85aca4c), closes #287 #518 #370

v1.25.0

1 year ago

1.25.0 (2023-04-25)

Bug Fixes

  • formatter: fixed extra indent on endblocktrans tags (35e1041), closes #611

Features

v1.24.0

1 year ago

1.24.0 (2023-04-24)

Features

  • formatter: added option to prevent contents of some template tags from indenting (cc196d3)

v1.23.3

1 year ago

1.23.3 (2023-04-19)

Bug Fixes

  • formatter: fixed speed on formatter (57cf98d), closes #601