Skip to content

Commit 9bec3f3

Browse files
author
Alexander Weber
committed
do not modify / escape input vars
1 parent 14ee498 commit 9bec3f3

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.complate/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ templates:
66
{{ a.alpha }}
77
values:
88
a.alpha:
9-
env: ALPHA
9+
static: '"test"'
1010
one:
1111
content:
1212
file: ./.complate/templates/arbitraty-template-file.tpl

src/render/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ pub async fn render(
4848
}
4949

5050
let mut hb = handlebars::Handlebars::new();
51+
hb.register_escape_fn(|s| s.to_owned());
5152
if args.strict {
5253
hb.set_strict_mode(true);
5354
}

0 commit comments

Comments
 (0)