mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 20:17:17 +00:00
Specify target path caching for resources.ExecuteAsTemplate (#2027)
This commit is contained in:
1 parent
a54bf4cd0c
commit
42cc48c163
1 file changed
+1
-1
@@ -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.
|
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
|
```go-html-template
|
||||||
// assets/sass/template.scss
|
// assets/sass/template.scss
|
||||||
|
|||||||
Reference in new issue
Block a user