about summary refs log tree commit diff
path: root/docs/templates.md
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2018-03-09T13·49+0100
committerVincent Ambo <github@tazj.in>2018-03-09T13·54+0100
commitb8722ce83bce727d88a61cecff3343d3046e75f7 (patch)
treed3ebcea70f8944d70093bf4201dc0f15468909ba /docs/templates.md
parentbafb792339b5898a0e6b6219ad54b5f501d727c2 (diff)
refactor(templater): Pass resource set path to insertFile function
This is actually several refactors in one:

* rename "fileContent" function to "insertFile"
* pass the resource set path to the "insetFile" function
* update docs and example with a pipeline including indentation
  adjustments for the inserted file
Diffstat (limited to 'docs/templates.md')
-rw-r--r--docs/templates.md7
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/templates.md b/docs/templates.md
index d9ff0fd126e3..11488f573a59 100644
--- a/docs/templates.md
+++ b/docs/templates.md
@@ -74,9 +74,10 @@ Some template functions come from Go's standard library and are listed in the
 [Go documentation][]. In addition the functions declared by [sprig][] are
 available in kontemplate, as well as three custom functions:
 
-`json`: Encodes any supplied data structure as JSON.
-`passLookup`: Looks up the supplied key in [pass][].
-`fromFile`: Insert the contents of the given file from the resource set folder.
+* `json`: Encodes any supplied data structure as JSON.
+* `passLookup`: Looks up the supplied key in [pass][].
+* `insertFile`: Insert the contents of the given file in the resource
+  set folder as a string.
 
 ## Examples: