better README

This commit is contained in:
Jorijn van der Graaf 2025-11-09 23:07:31 +01:00
commit 7350ce0bea
4 changed files with 142 additions and 19 deletions

View file

@ -1,12 +1,32 @@
![alt text](https://github.com/Catcrafts/Crafter.Web/blob/master/samples/HelloWorld/HelloWorld.png?raw=true)
# HelloElement Example
This sample demonstrates how to use the element class
This sample demonstrates how to use the HtmlElement class in Crafter.CppDOM.
## Features
- Shows how to create and manipulate HTML elements
- Demonstrates basic DOM manipulation techniques
- Illustrates element creation and content setting
## 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
```
and go to `http://localhost:8080/`
Then navigate to `http://localhost:8080/` in your browser.
if caddy is not installed you can use your favorite static file server instead
If caddy is not installed, you can use your favorite static file server instead.