Crafter.CppDOM/examples/HelloWorld
2025-11-12 18:48:36 +01:00
..
HelloWorld.png new crafter.build structure 2025-11-09 20:11:22 +01:00
main.cpp working keydown 2025-11-10 20:02:11 +01:00
project.json click event 2025-11-09 22:43:52 +01:00
README.md readme change 2025-11-12 18:48:36 +01:00
run.sh new crafter.build structure 2025-11-09 20:11:22 +01:00

HelloWorld Example

This sample demonstrates a simple hello world application using Crafter.CppDOM.

Usage

import Crafter.CppDOM;
using namespace Crafter::CppDOM;

int main(){
    HtmlElement body("body");
    body.SetInnerHTML("Hello World!");
}

Building and Running

crafter-build build executable
run.sh

Then navigate to http://localhost:8080/ in your browser.

If caddy is not installed, you can use your favorite static file server instead.