readme changes
This commit is contained in:
parent
81b2204c24
commit
29f71aee39
1 changed files with 1 additions and 1 deletions
|
|
@ -43,7 +43,7 @@ using namespace Crafter::Web;
|
|||
int main() {
|
||||
const char id[] = "body";
|
||||
const char content = "<h1>Hello from C++!</h1>";
|
||||
Crafter::Web::Bindings::SetInnerHTML(id, sizeof(id)-1, content.c_str(), content.size()-1);
|
||||
Crafter::CppDOM::Bindings::SetInnerHTML(id, sizeof(id)-1, content.c_str(), content.size()-1);
|
||||
}
|
||||
```
|
||||
Save and close, then run ``crafter-webbuild serve -c debug``. Now you can open the browser at ``http://localhost:8080/`` and ``Hello from C++!`` will appear in the browser.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue