// Route: GET /templates/page (extends, blocks, for, filters, escape) #include "support/Assert.hpp" using namespace molo::example::test; int main() { Fixture f; auto res = f.client->get("/templates/page"); check(res.status == 200, "status 200"); check(contains(res.body, "Templates"), "base layout applied"); check(contains(res.body, "Author: ADA"), "upper filter ran"); check(contains(res.body, "<b>bold</b>"), "default output escaped"); check(contains(res.body, "bold"), "safe opt-out kept markup"); check(contains(res.body, "extends (inheritance)"), "for loop rendered"); return finish("templates/page"); }