Clarify caching for resources.FromString (#2120)

This commit is contained in:
Will Faught 2023-06-29 20:02:26 -07:00 committed by GitHub
parent 5bf2fef6d2
commit 60c23920bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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