aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bin/mt-webface.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bin/mt-webface.rs b/src/bin/mt-webface.rs
index a11a038..b5b4fe0 100644
--- a/src/bin/mt-webface.rs
+++ b/src/bin/mt-webface.rs
@@ -3,6 +3,7 @@ extern crate getopts;
extern crate pencil;
extern crate modelthing;
extern crate env_logger;
+extern crate markdown;
#[macro_use]
extern crate log;
@@ -46,6 +47,7 @@ fn model_view(r: &mut Request) -> PencilResult {
context.insert("model_name".to_string(), me.metadata.name_en);
context.insert("model_description".to_string(), me.metadata.description_en.unwrap_or("".to_string()));
//context.insert("metadata".to_string(), me.metadata);
+ context.insert("markdown_html".to_string(), markdown::to_html(&me.markdown));
context.insert("markdown".to_string(), me.markdown);
context.insert("modelica".to_string(), format!("{:?}", me.ast));
r.app.render_template("model_view.html", &context)