aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/mt-webface.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/mt-webface.rs b/src/bin/mt-webface.rs
index b26e4fe..59b0621 100644
--- a/src/bin/mt-webface.rs
+++ b/src/bin/mt-webface.rs
@@ -20,7 +20,7 @@ use pencil::{redirect, abort};
use pencil::method::{Get, Post};
use regex::Regex;
use modelthing::transpile_scheme::TranspileScheme;
-use modelthing::transpile_js::TranspileJS;
+use modelthing::transpile_js::{TranspileJS, TranspileJSODE};
use modelthing::repr_latex::ReprLaTeX;
/*
@@ -112,6 +112,7 @@ fn model_repr(r: &mut Request) -> PencilResult {
match format {
"scheme" => Ok(Response::from(me.ast.transpile_scheme().unwrap())),
"javascript" => Ok(Response::from(me.ast.transpile_js().unwrap())),
+ "javascript_ode" => Ok(Response::from(me.ast.transpile_js_ode().unwrap())),
"latex" => Ok(Response::from(me.ast.repr_latex().unwrap())),
_ => abort(403),
}