You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-8Lines changed: 4 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,17 +67,13 @@ This option (`'live'`) enables minification of the html responses just before th
67
67
68
68
## Usage
69
69
70
-
**Getting Started**
71
-
72
-
The class of most interest is `Classes\HTMLMin`. It is bound to the ioc container as `'htmlmin'` and can be accessed using the `Facades\HTMLMin` facade.
73
-
74
70
**Classes\HTMLMin**
75
71
76
-
There are three public methods of interest.
72
+
This is the class of most interest It is bound to the ioc container as `'htmlmin'` and can be accessed using the `Facades\HTMLMin` facade. There are three public methods of interest.
77
73
78
74
The `'blade'` method will parse a string as blade and minify it as quickly as possible. This is method the compiler class uses when blade minification is enabled.
79
75
80
-
The `'render'` method will parse a string as html and will minify it as best as possible using Mr Clay's [Minify](https://github.com/mrclay/minify) package. This method can be more time consuming than the blade method, but will usually achieve an overall smaller result. This is the method that is used in an after filter when live minification is enabled.
76
+
The `'render'` method will parse a string as html and will minify it as best as possible using Mr Clay's [Minify](https://github.com/mrclay/minify) package. This method can be more time consuming than the blade method, but will usually achieve an overall smaller result. This is the method that is automatically used in an after filter when live minification is enabled.
81
77
82
78
The `'make'` method will return a minified view after being parsed by the `'blade'` method. Note that the minification occurs after the view has been executed unlike in the compiler where the view is minified and cached before it is executed.
83
79
@@ -87,11 +83,11 @@ This class contains no public methods of interest. This class used to minify bla
87
83
88
84
**Facades\HTMLMin**
89
85
90
-
This facade will dynamically pass static method calls to the `'htmlmin'` object in the ioc container which by default is the `'Classes\HTMLMin'` class.
86
+
This facade will dynamically pass static method calls to the `'htmlmin'` object in the ioc container which by default is the `Classes\HTMLMin` class.
91
87
92
88
**HTMLMinServiceProvider**
93
89
94
-
This class contains no public methods of interest. This class should be added to the providers array in `'app/config/app.php'`. This class will setup ioc bindings and register automatic blade/live minification based on the config.
90
+
This class contains no public methods of interest. This class should be added to the providers array in `app/config/app.php`. This class will setup ioc bindings and register automatic blade/live minification based on the config.
0 commit comments