ghickman,
@ghickman@mastodon.social avatar

What are folks using for linting and/or formatting templates these days?

webology,
@webology@mastodon.social avatar

@ghickman Djhtml but I need to compare it against curlylint again.

danjac,
@danjac@masto.ai avatar

@ghickman djlint

e11bits,
@e11bits@fosstodon.org avatar

@ghickman Nice, I could see myself using this as a pre-commit.

@danjac How good is the formatting in your experience? Because the docs say: "Formatting is a beta tool."

https://www.djlint.com/docs/integrations/

danjac,
@danjac@masto.ai avatar

@e11bits @ghickman it's fine. I use it with pre-commit and my IDE and works ok, you can use"djlint:off" comments to keep the original formatting when it doesn't quite do what you want. Unlike prettier it doesn't mess up Django template syntax.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • django
  • DreamBathrooms
  • magazineikmin
  • everett
  • InstantRegret
  • rosin
  • Youngstown
  • Durango
  • slotface
  • ngwrru68w68
  • mdbf
  • ethstaker
  • kavyap
  • thenastyranch
  • khanakhh
  • megavids
  • anitta
  • GTA5RPClips
  • osvaldo12
  • tacticalgear
  • cisconetworking
  • cubers
  • modclub
  • provamag3
  • normalnudes
  • tester
  • Leos
  • JUstTest
  • lostlight
  • All magazines