mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-13 12:07:03 -04:00
Clarify caching for resources.FromString (#2120)
This commit is contained in:
parent
5bf2fef6d2
commit
60c23920bd
@ -16,6 +16,8 @@ signature: ["resources.FromString TARGET_PATH CONTENT"]
|
||||
|
||||
It is possible to create a resource directly from the template using `resources.FromString` which takes two arguments, the target path for the created resource and the given content string.
|
||||
|
||||
The result is cached using the target path as the cache key.
|
||||
|
||||
The following example creates a resource file containing localized variables for every project's languages.
|
||||
|
||||
```go-html-template
|
||||
|
Loading…
x
Reference in New Issue
Block a user