Skip to content

Commit d8e3ba8

Browse files
authored
Merge pull request #4 from Procedurally-Generated-Human/patch-1
Fixed some grammar mistakes
2 parents 7807a1a + ddd1669 commit d8e3ba8

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

README.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,32 @@
33

44
# laravel EasyBlade
55

6-
You can create a simpler and readable view with EasyBlade
6+
You can create a simpler and more readable view with EasyBlade
77

8-
# Install
8+
# Installation
99

1010
```
1111
composer require rezaamini-ir/laravel-easyblade
1212
```
1313

1414
# Usage
1515

16-
Use EasyBlade is too much easy like its name.
16+
Using EasyBlade is, just like its name, super easy!
1717

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 :
2020
```html
2121
<a href="{{ route('home') }}"></a>
2222
```
23-
But We create a easier way with EasyBlade
23+
But by using EasyBlade,
2424
Just write :
2525
```html
2626
<a href="@route('home')"></a>
2727
```
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
2929

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
3132

3233
## Current Directives :
3334

@@ -46,8 +47,8 @@ Blade template engine has created to not code PHP pure, It has created to code e
4647
- `@old('name', 'Reza')`
4748

4849
## 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.
5152

5253
## Examples :
5354
- `@count`
@@ -153,4 +154,4 @@ Blade template engine has created to not code PHP pure, It has created to code e
153154
```blade
154155
@style('/css/app.css')
155156
// Return link tag : <link rel="stylesheet" href="/css/app.css">
156-
```
157+
```

0 commit comments

Comments
 (0)