summaryrefslogtreecommitdiffstats
path: root/docs/content/en/functions/resources/ExecuteAsTemplate.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/content/en/functions/resources/ExecuteAsTemplate.md')
-rw-r--r--docs/content/en/functions/resources/ExecuteAsTemplate.md10
1 files changed, 8 insertions, 2 deletions
diff --git a/docs/content/en/functions/resources/ExecuteAsTemplate.md b/docs/content/en/functions/resources/ExecuteAsTemplate.md
index d17f0580c..5f7e58413 100644
--- a/docs/content/en/functions/resources/ExecuteAsTemplate.md
+++ b/docs/content/en/functions/resources/ExecuteAsTemplate.md
@@ -1,6 +1,6 @@
---
title: resources.ExecuteAsTemplate
-description: Creates a resource from a Go template, parsed and executed with the given context.
+description: Returns a resource created from a Go template, parsed and executed with the given context.
categories: []
keywords: []
action:
@@ -11,7 +11,13 @@ action:
signatures: [resources.ExecuteAsTemplate TARGETPATH CONTEXT RESOURCE]
---
-Hugo publishes the resource to the target path when you call its`.Publish`, `.Permalink`, or `.RelPermalink` method. The resource is cached, using the target path as the cache key.
+The `resources.ExecuteAsTemplate` function returns a resource created from a Go template, parsed and executed with the given context, caching the result using the target path as its cache key.
+
+Hugo publishes the resource to the target path when you call its [`Publish`], [`Permalink`], or [`RelPermalink`] methods.
+
+[`publish`]: /methods/resource/publish
+[`permalink`]: /methods/resource/permalink
+[`relpermalink`]: /methods/resource/relpermalink
Let's say you have a CSS file that you wish to populate with values from your site configuration: