We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab33589 commit 68b361cCopy full SHA for 68b361c
aiscript-runtime/src/endpoint.rs
@@ -602,3 +602,8 @@ pub(crate) fn convert_field(field: ast::Field) -> Field {
602
validators: Arc::from(field.validators),
603
}
604
605
+
606
+pub fn render(template: &str, context: serde_json::Value) -> Result<String, String> {
607
+ let engine = template::get_template_engine();
608
+ engine.render(template, &context)
609
+}
0 commit comments