without autoescape
This commit is contained in:
14
examples/templates/cuddle.yaml
Normal file
14
examples/templates/cuddle.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
# yaml-language-server: $schema=../../schemas/base.json
|
||||
|
||||
base: false
|
||||
|
||||
vars:
|
||||
service: "some-service"
|
||||
|
||||
scripts:
|
||||
test_render_template:
|
||||
type: shell
|
||||
args:
|
||||
extravar:
|
||||
type: env
|
||||
key: "HOME"
|
6
examples/templates/scripts/test_render_template.sh
Executable file
6
examples/templates/scripts/test_render_template.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
CUDDLE_FETCH_POLICY=never cuddle_cli render_template \
|
||||
--template-file "$TMP/input.txt.tmpl" \
|
||||
--destination "$TMP/input.txt" \
|
||||
--extra-var "extravar=someextravar"
|
3
examples/templates/templates/input.txt.tmpl
Normal file
3
examples/templates/templates/input.txt.tmpl
Normal file
@@ -0,0 +1,3 @@
|
||||
some {{ service }} name
|
||||
|
||||
- {{ extravar }}
|
Reference in New Issue
Block a user