Skip to content

Commit c00b335

Browse files
authored
Merge pull request #40 from Jamesking56/patch-2
Add Blade usage to README
2 parents 74a71c0 + 68c0e0b commit c00b335

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,15 @@ If you want to get the defined classes for a certain element, you can get them s
8787
// output: link hover:underline
8888
```
8989

90+
## Usage with Blade
91+
92+
If you wish to use classify with Blade instead of Antlers:
93+
```php
94+
// no param is needed to use the 'default' styleset
95+
{!! Statamic::modify($bard_text)->classify() !!}
96+
{!! Statamic::modify($bard_text)->classify('blog') !!}
97+
```
98+
9099
## Nested selectors
91100
You can nest your selectors to style elements differently in varying contexts.
92101

0 commit comments

Comments
 (0)