about summary refs log tree commit diff
path: root/docs
diff options
context:
space:
mode:
authorNiklas Wik <niklas.wik@nokia.com>2018-01-09T13·12+0200
committerVincent Ambo <github@tazj.in>2018-03-09T13·54+0100
commitbafb792339b5898a0e6b6219ad54b5f501d727c2 (patch)
tree1b364cfb260ddc24642c64ad0e17c1ac486dac58 /docs
parent850fdcf3e0270db885f661ae59225db92143c3f2 (diff)
feat(templater): Added support for file include
Adds a 'fileContent' template function to insert the literal contents
of a file specified in the template.

Signed-off-by: Niklas Wik <niklas.wik@nokia.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/templates.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/templates.md b/docs/templates.md
index 8bcc2c7f5665..d9ff0fd126e3 100644
--- a/docs/templates.md
+++ b/docs/templates.md
@@ -72,10 +72,11 @@ right.
 
 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 two custom functions:
+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][]
+`passLookup`: Looks up the supplied key in [pass][].
+`fromFile`: Insert the contents of the given file from the resource set folder.
 
 ## Examples: