Skip to content

Commit 54c7fed

Browse files
committed
update README.md
1 parent c44d974 commit 54c7fed

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

README.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,20 @@ Blade template engine has created to not code PHP pure, It has created to code e
143143
- `@script`
144144
```blade
145145
@script('js/script.js', true)
146-
147-
// Return script tag with 'defer' : <script src="http://domain/js/script.js" defer></script>
146+
// Return script tag with 'https' protocol : <script src="https://domain/js/script.js"></script>
147+
148+
@script('js/script.js', false) // Second and third parameter is optional
149+
// Return with 'http' protocol : <script src="http://domain/js/script.js"></script>
150+
151+
@script('js/script.js', true, true)
152+
// Return with 'defer' attribute : <script src="https://domain/js/script.js" defer></script>
153+
```
154+
155+
- `@style`
156+
```blade
157+
@style('css/app.css', true)
158+
// Return link tag with 'https' protocol : <link rel="stylesheet" href="https://domain/css/app.css">
148159
149-
@script('js/script.js', false) // Second parameter is optional
150-
151-
// Return : <script src="http://domain/js/script.js"></script>
160+
@style('css/app.css', false)
161+
// Return with 'http' protocol : <link rel="stylesheet" href="http://domain/css/app.css">
152162
```

0 commit comments

Comments
 (0)