Skip to content

xlwings/prettier-plugin-jinja-template

 
 

Repository files navigation

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

About

Formatter plugin for jinja2 template files.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 61.7%
  • HTML 37.6%
  • JavaScript 0.7%