mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 22:17:28 +00:00
Fix resources.ExecuteAsTemplate argument order (#1394)
Co-authored-by: kjirou <sorenariblog@gmail.com>
This commit is contained in:
1 parent
97e2c2abb4
commit
17fae284c1
1 file changed
+1
-1
@@ -18,7 +18,7 @@ draft: false
|
|||||||
|
|
||||||
In order to use Hugo Pipes function on an asset file containing Go Template magic the function `resources.ExecuteAsTemplate` must be used.
|
In order to use Hugo Pipes function on an asset file containing Go Template magic the function `resources.ExecuteAsTemplate` must be used.
|
||||||
|
|
||||||
The function takes three arguments, the resource object, the resource target path and the template context.
|
The function takes three arguments: the resource target path, the template context, and the resource object.
|
||||||
|
|
||||||
```go-html-template
|
```go-html-template
|
||||||
// assets/sass/template.scss
|
// assets/sass/template.scss
|
||||||
|
|||||||
Reference in new issue
Block a user