28 lines
655 B
Text
28 lines
655 B
Text
|
|
/*
|
||
|
|
catcrafts.net
|
||
|
|
Copyright (C) 2025 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:Blog;
|
||
|
|
import Crafter.CppDOM;
|
||
|
|
import std;
|
||
|
|
using namespace Crafter;
|
||
|
|
|
||
|
|
export namespace Catcrafts {
|
||
|
|
struct BlogPost {
|
||
|
|
std::string name;
|
||
|
|
std::string date;
|
||
|
|
std::string content;
|
||
|
|
};
|
||
|
|
std::vector<BlogPost>* posts = new std::vector<BlogPost>{
|
||
|
|
{
|
||
|
|
"First post!",
|
||
|
|
"2025-11-12",
|
||
|
|
"Welcome to catcrafts.net!"
|
||
|
|
}
|
||
|
|
};
|
||
|
|
std::string RenderBlog();
|
||
|
|
}
|