Skip to content

Laravel view shrinker would performs compression operations similar to twig's spaceless function when compile&caching blade views.

License

Notifications You must be signed in to change notification settings

hidehalo/laravel-view-shrinker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel view shrinker

English|中文

What is?

Laravel view shrinker is a simple but effective laravel framework extension package.

It provider a view compiler,it would performs compression operations similar to twig's %spaceless function when compile&caching Blade views.

Thus completing %spaceless function at compile time to avoiding reading larger files of cache at runtime, it's helpful to enhance speed of view rendering.

How to

Install

composer install "hidehalo/laravel-view-shrinker"

Usage

Laravel will automatically register its service provider, override the default blade compiler, there have no more additional configuration.

Testing

./vendor/bin/test

License

The MIT License (MIT). Please see License File for more information.

About

Laravel view shrinker would performs compression operations similar to twig's spaceless function when compile&caching blade views.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages