mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-15 18:15:57 +00:00
Fix typo
This commit is contained in:
1 parent
ad4210c411
commit
9d7a2366d3
1 file changed
+1
-1
@@ -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.:
|
Also note the new `params` option that can be passed from template to 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:
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user