inital commit
This commit is contained in:
commit
cef5a32041
10 changed files with 171 additions and 0 deletions
28
interfaces/Catcrafts-Blog.cppm
Normal file
28
interfaces/Catcrafts-Blog.cppm
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
/*
|
||||
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();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue