Skip to content

Commit 98f0f57

Browse files
author
mostafa
committed
script tag
1 parent 9565c41 commit 98f0f57

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ class Test
2828

2929
```php
3030
{!! Khead::getMeta('viewport') !!}
31+
// <meta name="viewport" content="width=device-width, initial-scale=1">
3132
```
3233

3334
# link
@@ -38,10 +39,20 @@ Khead::setLink('author',[
3839
"href"=>"humans.txt"
3940
]);
4041
// access inside view
41-
4242
{!! Khead::getLink('author') !!}
43+
// <link rel="author" href="humans.txt">
4344
```
4445

46+
# script
47+
48+
```php
49+
Khead::setScript('one',[
50+
"src"=>"test.js",
51+
]);
52+
// view
53+
Khead::getScript('one');
54+
// <script src="test.js"></script>
55+
```
4556
# title
4657

4758
```php

0 commit comments

Comments
 (0)