Skip to content

Commit 7b2f713

Browse files
committed
Document HTML includes
1 parent a38aae0 commit 7b2f713

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/digging-deeper/helpers.md

+14
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,20 @@ Includes::blade('banner.blade.php');
8080
Includes::blade('banner', 'Default content');
8181
```
8282

83+
### HTML Includes
84+
85+
Gets the raw HTML of a partial file in the includes directory. Supplying the file extension is optional.
86+
87+
```php
88+
use Hyde\Support\Includes;
89+
90+
Includes::html('footer');
91+
Includes::html('footer.html');
92+
93+
// With default value if the file does not exist
94+
Includes::html('footer', 'Default content');
95+
```
96+
8397
### Directory Structure Example
8498

8599
Here is an example of the directory structure for includes:

0 commit comments

Comments
 (0)