Skip to content

Commit

Permalink
Document HTML includes
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Feb 12, 2024
1 parent a38aae0 commit 7b2f713
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/digging-deeper/helpers.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,20 @@ Includes::blade('banner.blade.php');
Includes::blade('banner', 'Default content');
```

### HTML Includes

Gets the raw HTML of a partial file in the includes directory. Supplying the file extension is optional.

```php
use Hyde\Support\Includes;

Includes::html('footer');
Includes::html('footer.html');

// With default value if the file does not exist
Includes::html('footer', 'Default content');
```

### Directory Structure Example

Here is an example of the directory structure for includes:
Expand Down

0 comments on commit 7b2f713

Please sign in to comment.