Skip to content

Commit

Permalink
Specify target path caching for resources.ExecuteAsTemplate (#2027)
Browse files Browse the repository at this point in the history
  • Loading branch information
willfaught authored Jun 28, 2023
1 parent a54bf4c commit 42cc48c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/en/hugo-pipes/resource-from-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ signature: ["resources.ExecuteAsTemplate TARGET_PATH CONTEXT RESOURCE"]

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 target path for the created resource, the template context, and the resource object.
The function takes three arguments: the target path for the created resource, the template context, and the resource object. The target path is used to cache the result.

```go-html-template
// assets/sass/template.scss
Expand Down

0 comments on commit 42cc48c

Please sign in to comment.