/formatter

Format any HTML with mix format

Primary LanguageElixir

Formatter

A simple way to format HTML files, including Tailwind CSS classes, on save using the Elixir formatter.

Usage

Link your .html file within the lib folder and run the formatter:

ln -s /full/path/to/your/html/index.html lib/project/index.html.heex
mix format

Autoformatting can be achieved using entr:

ls **/*.heex | entr -cdp mix format