pub(all) struct TemplateBinding {
source_path : String
template_path : String
struct_name : String
field_names : Array[String]
span : SourceSpan
} derive(Eq, ToJson, Debug)pub(all) enum TemplateNode {
Text(text~ : String, span~ : SourceSpan)
EscapedExpr(expr~ : String, span~ : SourceSpan)
RawExpr(expr~ : String, span~ : SourceSpan)
Statement(code~ : String, span~ : SourceSpan)
Include(path~ : String, span~ : SourceSpan)
Comment(text~ : String, span~ : SourceSpan)
} derive(Eq, ToJson, Debug)fn template_binding(source_path~ : String, template_path~ : String, struct_name~ : String, field_names? : Array[String], span~ : SourceSpan) -> TemplateBindingInstall
Download zipCode generator for precompiled MoonBit templates.
Dependencies