Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jinja2 templates should be prettified #43

Open
ross-spencer opened this issue Jul 29, 2020 · 1 comment
Open

Jinja2 templates should be prettified #43

ross-spencer opened this issue Jul 29, 2020 · 1 comment
Labels
cleanup Work that can make code/data cleaner or easier to maintain Request: discussion Issues to talk about...

Comments

@ross-spencer
Copy link
Contributor

ross-spencer commented Jul 29, 2020

As they get more complex then it will benefit the reader, and the developer to have a consistent and objective way to format these without too much to think about.

Unibeautify comes from the Atom IDE plugins and has a nice HTML format plugin that on face value can handle the templates without too much issue. If JavaScript is imported and CSS external too then that a separate format utility can be used for that and it will help improve readability.

There is a code playground here: https://playground.unibeautify.com/

Another nice feature is that now Unibeautify has been moved out of Atom is is standalone and can be run locally via NPM and also integrated into Git CI processes.

@ross-spencer ross-spencer added the Request: discussion Issues to talk about... label Jul 29, 2020
@mcantelon mcantelon added the cleanup Work that can make code/data cleaner or easier to maintain label Nov 18, 2023
@mcantelon mcantelon changed the title Jninja templates should be prettified Jinja templates should be prettified Mar 23, 2024
@mcantelon mcantelon changed the title Jinja templates should be prettified Jinja2 templates should be prettified Mar 23, 2024
@mcantelon
Copy link
Member

I've created a work-in-progress PR to use djlint for linting/formatting.

#302

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Work that can make code/data cleaner or easier to maintain Request: discussion Issues to talk about...
Projects
None yet
Development

No branches or pull requests

2 participants