Skip to content

Releases: davidodenwald/prettier-plugin-jinja-template

v1.4.0

28 Apr 18:25
Compare
Choose a tag to compare

Keep indentation in multiline expressions.

v1.3.3

03 Mar 19:32
Compare
Choose a tag to compare

fix infinite loop on empty expression

v1.3.2

10 Dec 11:37
Compare
Choose a tag to compare

set correct content for blocks after parser rewrite

v1.3.1

15 Oct 17:56
Compare
Choose a tag to compare

add tests and build to npm prepublish

v1.3.0

15 Oct 17:45
Compare
Choose a tag to compare

Recognize end statements that start with "end_".

v1.2.0

07 Oct 10:11
Compare
Choose a tag to compare

Remove hard coded list of non closing statements

The new logic assumes that all statements that start with "end" are closing statements and then searches for the closest statement that has the same name without the "end" and uses it as the start for a block.
All other statements are handled as non closing statements.

v1.1.0

04 Sep 11:59
Compare
Choose a tag to compare

Add option to en-/disable the quotation of HTML attributes to support JinjaX syntax.

v1.0.0

12 Aug 18:36
Compare
Choose a tag to compare

update plugin to support prettier v3

Starting with Prettier 3 auto-discovery of plugins has been removed.

To enable this plugin you ether have to add it to your prettier config:

{
  "plugins": ["prettier-plugin-jinja-template"]
}

or add it to the prettier command:

npx prettier --write **/*.html --plugin=prettier-plugin-jinja-template

v0.5.0

14 May 10:22
Compare
Choose a tag to compare
  • update dependecies (f54a1ff)
  • fix indentation after empty lines (fd332a6)
  • Fix 'closung' typo (c854cfd)
  • Add pluralize as non-closing statement (1aec2a6)

v0.4.0

07 May 12:34
Compare
Choose a tag to compare

preserve empty lines between jinja elements

cleanup statements if they only contain whitespace