Skip to content

Commit

Permalink
Merge pull request #164 from SgLy/feat-template-compiler-protect-not-…
Browse files Browse the repository at this point in the history
…found-import

Avoid throwing error when importing file not found
  • Loading branch information
LastLeaf committed Jun 24, 2024
2 parents ccdcc51 + b5c697c commit dd349fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glass-easel-template-compiler/src/proc_gen/tag.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ impl Template {
write!(w, "if(!S)S=Object.assign({{}}")?;
for target_path in self.globals.imports.iter() {
let p = crate::path::resolve(&self.path, &target_path.name);
write!(w, ",G[{}]._", gen_lit_str(&p))?;
write!(w, ",(G[{}]||{{}})._", gen_lit_str(&p))?;
}
write!(w, ",H)")?;
Ok(())
Expand Down

0 comments on commit dd349fe

Please sign in to comment.