wip: start to refactor out hot reloading from packages

Also implement alternative simpler template system
This commit is contained in:
Jonathan Kelley committed 2022-10-20 09:56:09 -07:00
1 parent 3b7b503333
commit 90982e0ccb
44 files changed
+3865 -5133

No files matched your search

+9
View File
@@ -19,6 +19,15 @@ pub struct IfmtInput {
pub segments: Vec<Segment>,
}
impl IfmtInput {
pub fn is_static(&self) -> bool {
match self.segments.as_slice() {
&[Segment::Literal(_)] => true,
_ => false,
}
}
}
impl IfmtInput {
pub fn to_static(&self) -> Option<String> {
self.segments