#include "App.hpp" #include "../fw/Templates.hpp" namespace molo::example::app { namespace { const char kBase[] = R"BASE(
Every framework feature, one click away. Mobile-first: narrow the window and the top nav collapses into a dropdown menu.
{% if show_matrix %}| Feature | Route |
|---|---|
| {{ row.feature }} | {{ row.route }} |
Matrix hidden.
{% endif %} {% include "nav_hint.html" %} {% endblock %} )INDEX"; const char kPage[] = R"PAGE({% extends "base.html" %} {% block content %}Author: {{ author|upper }}
Raw (escaped): {{ snippet }}
Trusted (safe): {{ snippet|safe }}
{{ notice }}
{% endif %} {% if error_count %}HTTP requests, connections, and service state of this running server. History is 15 minutes in 10 second buckets. The server stops accepting after its connection cap, so auto refresh is off by default.
OpenAPI JSON: /openapi.json
{{ row.method }} {{ row.path }} : {{ row.summary }}{{ message }}
{% endblock %} )ERROR"; const char kNavHint[] = "Tip: this page works on a 360px phone.
\n"; } // namespace void load_templates(Services& services) { services.templates->add_template("base.html", kBase); services.templates->add_template("index.html", kIndex); services.templates->add_template("page.html", kPage); services.templates->add_template("form_page.html", kFormPage); services.templates->add_template("docs.html", kDocs); services.templates->add_template("stats.html", kStats); services.templates->add_template("error.html", kError); services.templates->add_template("nav_hint.html", kNavHint); services.templates->add_global("site", "MoloApp living example"); services.templates->add_global("backend", "skeleton"); } } // namespace molo::example::app