better README
This commit is contained in:
parent
a9667d38fd
commit
7350ce0bea
4 changed files with 142 additions and 19 deletions
|
|
@ -1,12 +1,26 @@
|
|||

|
||||
# HelloWorld Example
|
||||
|
||||
This sample demonstrates a simple hello world.
|
||||
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
|
||||
```
|
||||
|
||||
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.
|
||||
Loading…
Add table
Add a link
Reference in a new issue