VSOT - Django/jinja template formatter
Project description
HTML Template formatter
Use VSOT to automatically format your django templates. No need to manually reflow text or tags when you add/remove content.
Free software: MIT license
Features
Mimics black in terms of options and configuration.
Automatically supports all built in django/jinja2 tags
Safe - VSOT ensures that it does not change the meaning of the templates
Installation
pip install vsot
Dev Setup
Requirements: - Python 3.6 or later - Docker - Python poetry (see poetry docs)
Clone repo
Installation
poetry install
Credits
A lot of the code for this was repurposed from black
Antlr4 is used for the parser, along with using the HTML parser from the antlr library as a starting point
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.