prettier-plugin-jinja-template
TypeScript icon, indicating that this package has built-in type declarations

0.5.0 • Public • Published

prettier-plugin-jinja-template

Formatter plugin for jinja2 template files.

Install

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

Use

To format basic .html files, you'll have to override the used parser inside your .prettierrc:

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

Run it on all html files in your project:

npx prettier --write **/*.html

Install

npm i prettier-plugin-jinja-template

DownloadsWeekly Downloads

1,105

Version

0.5.0

License

MIT

Unpacked Size

43.2 kB

Total Files

80

Last publish

Collaborators

  • davidodenwald