diff --git a/content/en/hugo-pipes/resource-from-template.md b/content/en/hugo-pipes/resource-from-template.md index 317630b40..9bc8c7e9d 100755 --- a/content/en/hugo-pipes/resource-from-template.md +++ b/content/en/hugo-pipes/resource-from-template.md @@ -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. -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 // assets/sass/template.scss @@ -35,4 +35,4 @@ body{ ```go-html-template {{ $sassTemplate := resources.Get "sass/template.scss" }} {{ $style := $sassTemplate | resources.ExecuteAsTemplate "main.scss" . | resources.ToCSS }} -``` \ No newline at end of file +```