summaryrefslogtreecommitdiff
path: root/src/eval/value.rs
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/eval/value.rs
parent58f799c41cb71f167e6e82eb94b3cde1303de11e (diff)
Make templates and strings summable 🥪
Diffstat (limited to 'src/eval/value.rs')
-rw-r--r--src/eval/value.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/eval/value.rs b/src/eval/value.rs
index 2879e6d6..e175b9ff 100644
--- a/src/eval/value.rs
+++ b/src/eval/value.rs
@@ -119,6 +119,8 @@ pub enum TemplateNode {
/// The evaluated expressions for the `tree`.
map: ExprMap,
},
+ /// A template that was converted from a string.
+ Str(String),
/// A template that can implement custom behaviour.
Any(TemplateAny),
}