/* catcrafts.net Copyright (C) 2026 Catcrafts The source code of this website is made available for viewing purposes only. No permission is granted to copy, modify, distribute, or create derivative works. */ export module Catcrafts:Views_impl; import :Views; import Crafter.Graphics; import std; using namespace Crafter; namespace Catcrafts { namespace { // Owning handle for the page-chrome root. `std::optional` lets us // defer construction until InitializePage() runs (the CreateInBody // call would otherwise fire at static-init time, before main()). std::optional root; } void InitializePage() { root.emplace(Dom::HtmlElement::CreateInBody("div", "catcrafts-root")); root->SetInnerHTML(R"(
)"); } }