Fix resources.ExecuteAsTemplate argument order (#1394)

Co-authored-by: kjirou <sorenariblog@gmail.com>
This commit is contained in:
Joe Mooringandkjirou authored and GitHub committed 2021-03-31 15:27:25 -07:00
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