Clarify caching for resources.FromString (#2120)

This commit is contained in:
Will Faught authored and GitHub committed 2023-06-29 20:02:26 -07:00
1 parent 5bf2fef6d2
commit 60c23920bd
1 file changed
+2
@@ -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