Html::gist()
Embeds a GitHub Gist
Html::gist(string $url, string|null $file = null, array $attr = []): string
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $urlrequired | string |
no default value | Gist URL |
| $file | stringornull |
null
|
Optional specific file to embed |
| $attr | array |
[]
|
Additional attributes for the <script> tag |
Return type
string
Parent class
Kirby\Cms\Html
inherited from Kirby\Toolkit\Html