aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2017-01-28 19:47:16 -0800
committerbnewbold <bnewbold@robocracy.org>2017-01-28 19:47:16 -0800
commit288ed7bf6c557723b658f9be5694e7a496e5d1f5 (patch)
treef5d6eb395763b5d12fafc0d6f1192a40b58afe70 /src/bin
parent1e3491f39739387bfc14829f0d235399c8a3f250 (diff)
downloadmodelthing-288ed7bf6c557723b658f9be5694e7a496e5d1f5.tar.gz
modelthing-288ed7bf6c557723b658f9be5694e7a496e5d1f5.zip
variable table (in HTML)
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 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(),