added HtmlElement class

This commit is contained in:
Jorijn van der Graaf 2025-02-12 23:05:59 +01:00
commit 3174f75e21
3 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,8 @@
import Crafter.CppDOM;
using namespace Crafter::CppDOM;
int main(){
HtmlElement body("body");
body.SetInnerHTML("Hello World!");
//No need to call FreeJs, this is done in the destructor of HtmlElement.
}