From 60c23920bd588e81a41ce0cbf36776e1e67a50cb Mon Sep 17 00:00:00 2001 From: Will Faught Date: Thu, 29 Jun 2023 20:02:26 -0700 Subject: [PATCH] Clarify caching for resources.FromString (#2120) --- content/en/hugo-pipes/resource-from-string.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content/en/hugo-pipes/resource-from-string.md b/content/en/hugo-pipes/resource-from-string.md index 221898dba..da6c836db 100755 --- a/content/en/hugo-pipes/resource-from-string.md +++ b/content/en/hugo-pipes/resource-from-string.md @@ -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