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
+12-11Lines changed: 12 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -3,31 +3,32 @@
3
3
4
4
# laravel EasyBlade
5
5
6
-
You can create a simpler and readable view with EasyBlade
6
+
You can create a simpler and more readable view with EasyBlade
7
7
8
-
# Install
8
+
# Installation
9
9
10
10
```
11
11
composer require rezaamini-ir/laravel-easyblade
12
12
```
13
13
14
14
# Usage
15
15
16
-
Use EasyBlade is too much easy like its name.
16
+
Using EasyBlade is, just like its name, super easy!
17
17
18
-
Imagine you want to write a route URL in a href in Blade
19
-
You can write this code :
18
+
Imagine that you want to write a route URL in a href in Blade
19
+
You will have to write this code :
20
20
```html
21
21
<ahref="{{ route('home') }}"></a>
22
22
```
23
-
But We create a easier way with EasyBlade
23
+
But by using EasyBlade,
24
24
Just write :
25
25
```html
26
26
<ahref="@route('home')"></a>
27
27
```
28
-
and don't use any {{ }} in your blade or don't use any PHP pure code
28
+
and don't use "{{ }}" or any pure PHP code
29
29
30
-
Blade template engine has created to not code PHP pure, It has created to code easier. You can pass it by EasyBlade
30
+
31
+
Blade template engine was not created for pure PHP code, rather, it was created to code easier. You can pass it by EasyBlade
31
32
32
33
## Current Directives :
33
34
@@ -46,8 +47,8 @@ Blade template engine has created to not code PHP pure, It has created to code e
46
47
-`@old('name', 'Reza')`
47
48
48
49
## Features :
49
-
- You can pass a route name or array of route names as first parameters to```@isActive``` directive , second parameter is a string which you want to echo in view and third parameter is a optional param and it will return a null string if nothing passed , It will be showed when current route is not equal to array or string which passed as first param
50
-
- You can use `@count` directive instead of write lots of if to check count of collection or array is equal or greater than your number which passed to second param.
50
+
- You can pass a route name or array of route names as first parameters to```@isActive``` directive , second parameter is a string which you want to echo in view and third parameter is an optional param and it will return a null string if nothing was passed , It will be showed when the current route is not equal to array or string which passed as first param
51
+
- You can use `@count` directive instead of writing lots of if statements to check if the count of the collection or array is equal to or greater than your number which was passed to the second param.
51
52
52
53
## Examples :
53
54
-`@count`
@@ -153,4 +154,4 @@ Blade template engine has created to not code PHP pure, It has created to code e
153
154
```blade
154
155
@style('/css/app.css')
155
156
// Return link tag : <link rel="stylesheet" href="/css/app.css">
0 commit comments