Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Te-cho/compile-blades
Browse files Browse the repository at this point in the history
  • Loading branch information
abidulrmdn committed Jul 2, 2017
2 parents 1332664 + 1c88445 commit fa86b2a
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# compile-blades

A Laravel package for compiling blades nested in 1 file into 1 flattened file.


## Why?

> For best performance, you may want to consider flattening your blades on production, cause a lot of nesting consumes time in laravel
> since each nested level repeats the same pipline process, that consumes time & memory.
Example of problems:
- https://stackoverflow.com/questions/30673129/laravel-blades-performance/44863712#44863712
- https://laracasts.com/discuss/channels/laravel/how-to-improve-laravel-views-performance-when-using-multiple-times-same-view-file-or-howto-avoid-repeating-expensive-read-file-operation


**Table of Contents**

- [Installation](#installation)
- [1) Require the package](#2-require-the-package)
- [3) Configure Laravel](#3-configure-laravel)
- [Usage](#usage)
- [Generating flatened blade file](#generating-flattened-blade)
- [A demo](#a-demo)
- [Perfomance Insights results](#profiler-resutls)


.. to be continued soon..

0 comments on commit fa86b2a

Please sign in to comment.