Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/olivernybroe/prettier-plugin-blade

Adds support for Blade templates to Prettier. (work in progress)
https://github.com/olivernybroe/prettier-plugin-blade

Last synced: about 1 month ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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 `{!!`, `{{--`.