diff options
author | Vincent Ambo <tazjin@gmail.com> | 2018-03-09T13·49+0100 |
---|---|---|
committer | Vincent Ambo <github@tazj.in> | 2018-03-09T13·54+0100 |
commit | b8722ce83bce727d88a61cecff3343d3046e75f7 (patch) | |
tree | d3ebcea70f8944d70093bf4201dc0f15468909ba /docs | |
parent | bafb792339b5898a0e6b6219ad54b5f501d727c2 (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')
-rw-r--r-- | docs/templates.md | 7 |
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: |