Crafter.CppDOM/examples/HelloElement/main.cpp

8 lines
214 B
C++
Raw Normal View History

2025-02-12 23:05:59 +01:00
import Crafter.CppDOM;
2025-11-09 22:43:52 +01:00
using namespace Crafter;
2025-02-12 23:05:59 +01:00
int main(){
2025-11-14 18:40:13 +01:00
HtmlElementPtr body("body");
2025-02-12 23:05:59 +01:00
body.SetInnerHTML("Hello World!");
2025-11-14 18:40:13 +01:00
//No need to call FreeJs, this is done in the destructor of HtmlElementPtr.
2025-02-12 23:05:59 +01:00
}