ZBase.registerView((function() {

  var render = function(path) {

    var page = $.getTemplate(
        "views/documentation",
        "documentation_main_tpl");

    var menu = DocumentationMenu();
    menu.render($(".zbase_documentation_menu_sidebar", page));
    $.handleLinks(page);
    $.replaceViewport(page);

    var content = $(".zbase_documentation_content");

    if(path) {
      var key = path.split("/").pop();
      $.httpGet("/a/_/d/" + key + ".html", function(res) {
        if(res.status != 500) {
          content.innerHTML = res.response;
        } else {
          content.innerHTML = key;
        }
      });
    }

    $.hideLoader();
  };

  return {
    name: "documentation",
    loadView: function(params) { render(); },
    unloadView: function() {},
    handleNavigationChange: render
  };

})());

@@ -504,12 +504,12 @@
 tus 
-!= 5
+== 2
 00) 
@@ -585,32 +585,75 @@
     
-content.innerHTML = key;
+$.fatalError(%22Could not get markdown file %5C%22%22 + key + %22.html%5C%22.%22); 
 %0A   

throw error if documentation file doesn't exist