diff --git a/content/en/hugo-pipes/js.md b/content/en/hugo-pipes/js.md index f745285a3..b9b841f15 100644 --- a/content/en/hugo-pipes/js.md +++ b/content/en/hugo-pipes/js.md @@ -105,7 +105,7 @@ import * as data from 'my/module/data.json'; Also note the new `params` option that can be passed from template to your JS files, e.g.: ```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: