Skip to content

Commit 2b1accf

Browse files
author
mostafa
committed
default blade {{..}}
escaped data with {{ data }}
1 parent 1d99f6a commit 2b1accf

File tree

1 file changed

+12
-15
lines changed

1 file changed

+12
-15
lines changed

README.md

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ class Test
1616
{
1717
public function home()
1818
{
19-
Khead::setMeta('bladeport',[
20-
"name" => "bladeport",
19+
Khead::setMeta('viewport',[
20+
"name" => "viewport",
2121
"content"=>"width=device-width, initial-scale=1"
2222
]);
2323
}
@@ -27,7 +27,7 @@ class Test
2727
~ inside blade <access>
2828

2929
```php
30-
{!! Khead::getMeta('bladeport') !!}
30+
{{ Khead::getMeta('viewport') }}
3131
// <meta name="bladeport" content="width=device-width, initial-scale=1">
3232
```
3333

@@ -38,8 +38,8 @@ Khead::setLink('author',[
3838
"rel"=>"author",
3939
"href"=>"humans.txt"
4040
]);
41-
// access inside blade
42-
{!! Khead::getLink('author') !!}
41+
// blade
42+
{{ Khead::getLink('author') }}
4343
// <link rel="author" href="humans.txt">
4444
```
4545

@@ -50,15 +50,15 @@ Khead::setScript('one',[
5050
"src"=>"test.js",
5151
]);
5252
// blade
53-
{!! Khead::getScript('one') !!}
53+
{{ Khead::getScript('one') }}
5454
// <script src="test.js"></script>
5555
```
5656
# title
5757

5858
```php
5959
Khead::setTitle('this is a title');
60-
// access blade
61-
{!! Khead::getTitle() !!}
60+
// blade
61+
{{ Khead::getTitle() }}
6262
```
6363

6464
# facebook open graph
@@ -101,10 +101,8 @@ Khead::setOg([
101101
"content"=>"@code4mk"
102102
]
103103
]);
104-
105-
// access with blade
106-
107-
{!! Khead::getOg() !!}
104+
// blade
105+
{{ Khead::getOg() }}
108106
```
109107

110108
# twitter cards
@@ -144,9 +142,8 @@ Khead::setTwitCards([
144142
"content"=>"on"
145143
]
146144
]);
147-
// access inside blade
148-
149-
{!! Khead::getTwitCards() !!}
145+
// blade
146+
{{ Khead::getTwitCards() }}
150147
```
151148

152149
# Head tags

0 commit comments

Comments
 (0)