# gist()

Embeds a Github Gist

****

- Source: <https://github.com/getkirby/kirby/tree/5.5.3/config/helpers.php#L189>

****

```php
gist(string $url, string|null $file = null): string
```

## Parameters

| Name | Type | Default | Description |
| ---- | ---- | ---- | ---- |
| `$url` (required) | `string` | – | – |
| `$file` | `string` or `null` | `null` | – |

## Return type

`string`

## Examples

```php
<?= gist('https://gist.github.com/bastianallgeier/b79615a9f7ca76c810b7') ?>
```