Skip to content

Kirby 4.4.1

Html::gist()

Embeds a GitHub Gist

Html::gist(string $url, ?string $file = null, array $attr = [ ]): string

Parameters

Name Type Default Description
$url * string Gist URL
$file string|null null Optional specific file to embed
$attr array [ ] Additional attributes for the <script> tag

Return type

string

Parent class

Kirby\Toolkit\Html