prettier-plugin-jinja-template but with patches to work with Askama
Find a file
davidodenwald 3490efe0c4 Release 0.0.4
add elif statement
2022-12-06 18:25:13 +01:00
.github/workflows fix failing tests on node 14 2022-12-01 19:27:58 +01:00
src add elif statement 2022-12-06 18:18:15 +01:00
test add elif statement 2022-12-06 18:18:15 +01:00
.gitignore initial commit 2022-11-18 20:05:06 +01:00
.prettierignore fix indentation on readme example 2022-11-18 21:22:28 +01:00
.prettierrc initial commit 2022-11-18 20:05:06 +01:00
babel.config.js initial commit 2022-11-18 20:05:06 +01:00
jest.config.js initial commit 2022-11-18 20:05:06 +01:00
package-lock.json Release 0.0.4 2022-12-06 18:25:13 +01:00
package.json Release 0.0.4 2022-12-06 18:25:13 +01:00
README.md add prettier to install instruction 2022-12-01 18:01:13 +01:00
tsconfig.json initial commit 2022-11-18 20:05:06 +01:00

prettier-plugin-jinja-template

Formatter plugin for jinja2 template files.

Install

npm install --save-dev prettier prettier-plugin-jinja-template

Use

To use it with basic .html files, you'll have to override the used parser inside your prettier config:

{
  "overrides": [
    {
      "files": ["*.html"],
      "options": {
        "parser": "jinja-template"
      }
    }
  ]
}