summaryrefslogtreecommitdiff
path: root/src/exec
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-02-12 23:11:47 +0100
committerLaurenz <laurmaedje@gmail.com>2021-02-12 23:11:47 +0100
commit094462cbdda15f19d2dc071b18201f656b8ddcd4 (patch)
tree0994b286aa1718cbc1a0b9523a934c1fb3f6f755 /src/exec
parent58f799c41cb71f167e6e82eb94b3cde1303de11e (diff)
Make templates and strings summable 🥪
Diffstat (limited to 'src/exec')
-rw-r--r--src/exec/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/exec/mod.rs b/src/exec/mod.rs
index 57fe8138..a9a44c10 100644
--- a/src/exec/mod.rs
+++ b/src/exec/mod.rs
@@ -155,6 +155,7 @@ impl Exec for TemplateNode {
fn exec(&self, ctx: &mut ExecContext) {
match self {
Self::Tree { tree, map } => tree.exec_with_map(ctx, &map),
+ Self::Str(s) => ctx.push_text(s),
Self::Any(any) => any.exec(ctx),
}
}