added view

This commit is contained in:
Jorijn van der Graaf 2025-11-10 22:46:05 +01:00
commit 580e53d3bc
11 changed files with 68 additions and 34 deletions

View file

@ -15,7 +15,7 @@ import Crafter.CppDOM;
using namespace Crafter::CppDOM;
int main(){
HtmlElement body("body");
HtmlElementView body("body");
body.SetInnerHTML("Hello World!");
}
```

View file

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