This commit is contained in:
Barish Barla authored and Bjørn Erik Pedersen committed 2020-11-15 00:22:28 +01:00
1 parent c88bc03830
commit ad4210c411
1 file changed
+1 -1
+1 -1
View File
@@ -27,7 +27,7 @@ params [map or slice] {{< new-in "0.78.0" >}}
: Params that can be imported as JSON in your JS files, e.g.: : Params that can be imported as JSON in your JS files, e.g.:
```go-html-template ```go-html-template
{{ $js := resources.Get "js/main.js" | js.Build (dict "params" (dict "api" "https://example.org/api" ) }} {{ $js := resources.Get "js/main.js" | js.Build (dict "params" (dict "api" "https://example.org/api")) }}
``` ```
And then in your JS file: And then in your JS file: