Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
reziamini committed Dec 25, 2020
1 parent c44d974 commit 54c7fed
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,20 @@ Blade template engine has created to not code PHP pure, It has created to code e
- `@script`
```blade
@script('js/script.js', true)
// Return script tag with 'defer' : <script src="http://domain/js/script.js" defer></script>
// Return script tag with 'https' protocol : <script src="https://domain/js/script.js"></script>
@script('js/script.js', false) // Second and third parameter is optional
// Return with 'http' protocol : <script src="http://domain/js/script.js"></script>
@script('js/script.js', true, true)
// Return with 'defer' attribute : <script src="https://domain/js/script.js" defer></script>
```

- `@style`
```blade
@style('css/app.css', true)
// Return link tag with 'https' protocol : <link rel="stylesheet" href="https://domain/css/app.css">
@script('js/script.js', false) // Second parameter is optional
// Return : <script src="http://domain/js/script.js"></script>
@style('css/app.css', false)
// Return with 'http' protocol : <link rel="stylesheet" href="http://domain/css/app.css">
```

0 comments on commit 54c7fed

Please sign in to comment.