The requested blog post could not be found.
"); + main.SetInnerHTML("The requested blog post could not be found.
"); } } \ No newline at end of file diff --git a/implementations/Catcrafts-Root.cpp b/implementations/Catcrafts-Root.cpp index 9c93bc6..1510169 100644 --- a/implementations/Catcrafts-Root.cpp +++ b/implementations/Catcrafts-Root.cpp @@ -29,7 +29,7 @@ namespace Catcrafts { std::cout << postSlug << std::endl; RenderBlogPost(postSlug); } else { - main->SetInnerHTML("The requested blog post could not be found.
"); + main.SetInnerHTML("The requested blog post could not be found.
"); } } else { RenderBlog(); //default route diff --git a/interfaces/Catcrafts-Blog.cppm b/interfaces/Catcrafts-Blog.cppm index 88fadd1..53b7e83 100644 --- a/interfaces/Catcrafts-Blog.cppm +++ b/interfaces/Catcrafts-Blog.cppm @@ -18,7 +18,25 @@ export namespace Catcrafts { std::string date; std::string content; }; - std::vectorstd::vector posts = new std::vector{... int main() from the eyes of C++ we're finished, deconstruct everything and wrap it up. Unkowing that we just registered a bunch of event handlers with JS.-fno-c++-static-destructors, and things like this are is also the reason i use clang instead of gcc.