Templates
version: 1.0.0
pipeline:
'--':
- ctx:
local:
# use local template to pass local_var from "ctx"
inline: <%- ctx.local_var %>
# global template processing of array "arr"
<$ ctx.arr.forEach(i => { $>
- ctx:
test_<$- i $>:
# mix of global and local templates
inline: <%- ctx.test + <$- i $> %>
<$ }); $>Local Templates
Global Templates
Passing values by reference
Escaped vs Raw output
Last updated
Was this helpful?