aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/mt-webface.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/mt-webface.rs')
-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 59b0621..4d26d21 100644
--- a/src/bin/mt-webface.rs
+++ b/src/bin/mt-webface.rs
@@ -21,7 +21,7 @@ use pencil::method::{Get, Post};
use regex::Regex;
use modelthing::transpile_scheme::TranspileScheme;
use modelthing::transpile_js::{TranspileJS, TranspileJSODE};
-use modelthing::repr_latex::ReprLaTeX;
+use modelthing::repr_latex::{ReprLaTeX, ReprVarsHTML};
/*
This command doesn't use error_chain (or raise errors in general) because the
@@ -86,6 +86,7 @@ fn model_view(r: &mut Request) -> PencilResult {
context.insert("markdown".to_string(), me.markdown.clone());
context.insert("modelica".to_string(), format!("{:?}", me.ast));
context.insert("latex".to_string(), me.ast.repr_latex().unwrap());
+ context.insert("vars_table".to_string(), me.ast.repr_vars_html().unwrap());
context.insert("editable".to_string(),
if namespace == "sandbox" { "true".to_string() } else { "".to_string() });
context.insert("computable".to_string(),