prettier-plugin-askama-temp.../README.md
2023-01-06 18:32:30 +01:00

30 lines
No EOL
494 B
Markdown

# prettier-plugin-jinja-template
Formatter plugin for jinja2 template files.
## Install
```bash
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`:
```json
{
"overrides": [
{
"files": ["*.html"],
"options": {
"parser": "jinja-template"
}
}
]
}
```
Run it on all html files in your project:
```bash
npx prettier --write **/*.html
```