Skip to content

Commit cd4d23a

Browse files
committed
chore: README updated
1 parent 2a19131 commit cd4d23a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,13 @@ You can create a custom PHP class to process or modify your JavaScript code befo
132132

133133
Create a custom PHP processor class implementing the `RenderableScript` or `ScriptWithPlaceholders` interface and register it using the `BladeInlineScripts::take()` method.
134134

135-
We have a built-in processor for the theme switch scripts as well. To use it, follow these steps:
135+
We have prepared abstract base implementations for each of the interfaces:
136+
```php
137+
abstract class FromFile implements RenderableScript
138+
abstract class FromFileWithPlaceholders implements ScriptWithPlaceholders
139+
```
140+
141+
To show them in action, we have created PHP processors extending the base classes for the theme switch scripts:
136142

137143
**Step 1**: Publish the built-in theme switch scripts with the PHP processor:
138144

0 commit comments

Comments
 (0)