We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1a5726 commit 4e4aca6Copy full SHA for 4e4aca6
layouts/shortcodes/engine-package.html
@@ -0,0 +1,13 @@
1
+{{ $enginePackage := readFile "node_modules/@opentermsarchive/engine/package.json" | unmarshal }}
2
+{{ $key := .Get "key" }}
3
+
4
+{{ $value := $enginePackage }}
5
+{{ range split $key "." }}
6
+ {{ $value = index $value . }}
7
+{{ end }}
8
9
+{{- if $value -}}
10
+ {{- $value -}}
11
+{{- else -}}
12
+ {{- warnf "Key '%s' not found in engine package.json" $key -}}
13
+{{- end -}}
0 commit comments