1.2.6 • Published 7 months ago

prettier-plugin-django-alpine v1.2.6

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

Django + Alpine.js formatting support in HTML

This Prettier plugin adds support for formatting Django and Alpine.js code in HTML files. Intended for use with Django templates using Alpine.js.

Django tags are mostly unmodified, only whitespace changes.

Alpine.js directives use modified JavaScript formatting.

If you want to format Alpine.js but you don't use Django, then this should still work just fine.

Installation

Install prettier and this plugin:

npm i -D prettier-plugin-django-alpine

Usage

Add the plugin to your .prettierrc file:

{
  "plugins": ["prettier-plugin-django-alpine"]
}

Or use it directly:

prettier --write --plugin=prettier-plugin-django-alpine "**/*.html"
1.2.6

7 months ago

1.2.5

7 months ago

1.2.4

7 months ago

1.2.3

7 months ago

1.2.2

7 months ago

1.2.1

7 months ago

1.1.1

10 months ago

1.1.0

10 months ago

1.0.0

10 months ago