{{- $parentID := .Parent.Get "id" -}}
{{- $narrowOnly := .Get "narrow" }}
<script defer type="module">
    import { railroadDiagram } from {{ `/scripts/railroad-utils.js` | relURL }};
    railroadDiagram(rr => {
        {{ .Inner | safeJS }}
    }, "{{ $parentID }}", {{ if $narrowOnly }}true{{ else }}false{{ end }});
</script>
