mindtwo / laravel-blade-spaceless
Blade @spaceless directive that strips whitespace between HTML tags at render time.
Package info
github.com/mindtwo/laravel-blade-spaceless
pkg:composer/mindtwo/laravel-blade-spaceless
Requires
- php: ^8.2
- illuminate/support: ^10.0|^11.0|^12.0|^13.0
Requires (Dev)
- larastan/larastan: ^2.9 || ^3.0
- laravel/pint: ^1.18
- orchestra/testbench: ^8.0 || ^9.0 || ^10.0 || ^11.0
- pestphp/pest: ^2.34 || ^3.0
- phpstan/phpstan: ^1.11 || ^2.0
README
Installation
You can install the package via composer:
composer require mindtwo/laravel-blade-spaceless
The package will register itself automatically.
Optionally you can publish the package configuration using:
php artisan vendor:publish --provider=mindtwo\\Spaceless\\SpacelessServiceProvider
How to use?
The new blade directives @spaceless and @endspaceless are now available in your blade views:
@spaceless <!DOCTYPE html> <html> <head></head> <body></body> </html> @endspaceless
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email info@mindtwo.de instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.