Skip to content

olivernybroe/prettier-plugin-blade

Repository files navigation

Blade support for Prettier

This is very much a work in progress. Most of the code is messy and proof-of-concept.

Right now, it supports formatting Blade files as HTML, sorting Tailwind classes (if you use Tailwind) and formatting the Blade {{ }} syntax (adding spaces and formatting code using prettier-php).

Here are some of the things that still need to be done:

  • Formatting directives
  • Ensuring directives with inner content are formatted correctly
  • Adding support for other {{ }} variants, i.e {!!, {{--.

About

Adds support for Blade templates to Prettier. (work in progress)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published