stash commit for Crafter.Web
This commit is contained in:
parent
2798e9567e
commit
219716aab9
7 changed files with 177 additions and 12 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
Crafter.Build
|
||||
Crafter.Web
|
||||
Copyright (C) 2024 Catcrafts
|
||||
Catcrafts.net
|
||||
|
||||
|
|
@ -33,9 +33,9 @@ export namespace Crafter::Web {
|
|||
std::string tag;
|
||||
std::string value;
|
||||
std::unordered_map<std::string, std::string> style;
|
||||
std::vector<HtmlElement> children;
|
||||
std::vector<HtmlElement*> children;
|
||||
std::unordered_map<std::string, std::string> attributes;
|
||||
HtmlElement(std::string tag, std::string value = "", std::unordered_map<std::string, std::string> style = {}, std::vector<HtmlElement> children = {}, std::unordered_map<std::string, std::string> attributes = {});
|
||||
HtmlElement(std::string tag, std::string value = "", std::unordered_map<std::string, std::string> style = {}, std::vector<HtmlElement*> children = {}, std::unordered_map<std::string, std::string> attributes = {});
|
||||
std::string Render() const;
|
||||
void RenderAsRoot() const;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue