Blade @spaceless directive that strips whitespace between HTML tags at render time.
mindtwo/laravel-blade-spaceless is a Laravel package for blade @spaceless directive that strips whitespace between html tags at render time..
It currently has 2 GitHub stars and 35.470 downloads on Packagist (latest version 1.5).
Install it with composer require mindtwo/laravel-blade-spaceless.
Discover more Laravel packages by mindtwo
or browse all Laravel packages to compare alternatives.
Last updated
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
The new blade directives @spaceless and @endspaceless are now available in your blade views:
@spaceless
<!DOCTYPE html>
<html>
<head></head>
<body></body>
</html>
@endspaceless
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.