#include "App.hpp" #include "../fw/Templates.hpp" namespace molo::example::app { namespace { const char kBase[] = R"BASE(
{{ feature_count }} features in {{ group_count }} groups, each one click away. Every row is a live route with a test behind it. Mobile-first: narrow the window and the top nav collapses into a dropdown menu.
{{ sections|safe }} {% 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.
Talk, pause, and the assistant answers out loud. Google speech-to-text, Gemini, and Google text-to-speech run on the server. Speak over the answer to interrupt it.
Checking Google credentials...
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("voice.html", kVoice); 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