You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
539 B
HTML
18 lines
539 B
HTML
{{/*
|
|
|
|
Renders an event example. Resolves `$ref`s, serializes as JSON, and ensures
|
|
that it can be included in HTML.
|
|
|
|
This partial is called with the example event object as its context.
|
|
|
|
*/}}
|
|
|
|
{{ $example_content := partial "json-schema/resolve-refs" (dict "schema" . "path" "event-schemas/examples") }}
|
|
{{ $example_json := jsonify (dict "indent" " ") $example_content }}
|
|
{{ $example_json = replace $example_json "\\u003c" "<" }}
|
|
{{ $example_json = replace $example_json "\\u003e" ">" | safeHTML }}
|
|
|
|
```json
|
|
{{ $example_json }}
|
|
```
|