Skip to content
This repository was archived by the owner on Jun 12, 2018. It is now read-only.

Commit 0147bc0

Browse files
authored
add comment about 5.4
1 parent 7e15c06 commit 0147bc0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
This Laravel package lets you declare functions inside blade templates. After installing it, you'll
33
never need to use partials as functions.
44

5-
This package is compatible with Laravel 5.1, 5.2 and 5.3
5+
This package is compatible with Laravel 5.1, 5.2, 5.3 and 5.4
6+
7+
In Laravel 5.4 [components](https://laravel.com/docs/5.4/blade#components-and-slots) were introduced. There is an overlap between the problems componenets and this package try to solve. So from 5.4 you might want to use using componenets instead. They are different though and this package might still provide a cleaner and easier solution in some cases.
68

79
## Installation
810

@@ -150,7 +152,6 @@ You shouldn't do this. I mean you really shouldn't. This is not what blade is de
150152
@if($n <= 1)
151153
{{1}}
152154
@return(1)
153-
}
154155
@endif
155156
156157
@@ -164,4 +165,4 @@ You shouldn't do this. I mean you really shouldn't. This is not what blade is de
164165

165166
## Contributions
166167

167-
Any contributions are welcome. Probably there is a much better way to do this, since there's a way to add extensions and custom compilers to blade. But it's undocumented and I'm not into Laravel *that* deep to understand what's going on in the blade parser. If you do know more, please help me to rewrite this. I really don't like that functions must be defined first, in the same file and it is also ugly that you have to pass `$__env` each time.
168+
Any contributions are welcome. Probably there is a much better way to do this, since there's a way to add extensions and custom compilers to blade. But it's undocumented and I'm not into Laravel *that* deep to understand what's going on in the blade parser. If you do know more, please help me to rewrite this. I really don't like that functions must be defined first, in the same file and it is also ugly that you have to pass `$__env` each time.

0 commit comments

Comments
 (0)