code: function render_template(type, object) {
    try {
      return new EJS({text: __templates[type]}).render(object);
    } catch (e) {
      //console.error(e);
      return "";
    }
  }
docs: / functions that rely on global __templates, __states, __transitions