26 lines
No EOL
481 B
Markdown
26 lines
No EOL
481 B
Markdown
# HelloWorld Example
|
|
|
|
This sample demonstrates a simple hello world application using Crafter.CppDOM.
|
|
|
|
## Usage
|
|
|
|
```cpp
|
|
import Crafter.CppDOM;
|
|
using namespace Crafter::CppDOM;
|
|
|
|
int main(){
|
|
HtmlElement body("body");
|
|
body.SetInnerHTML("Hello World!");
|
|
}
|
|
```
|
|
|
|
## Building and Running
|
|
|
|
```bash
|
|
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. |