added HtmlElement class
This commit is contained in:
parent
bff76688cd
commit
3174f75e21
3 changed files with 36 additions and 0 deletions
8
samples/HelloElement/main.cpp
Normal file
8
samples/HelloElement/main.cpp
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import Crafter.CppDOM;
|
||||
using namespace Crafter::CppDOM;
|
||||
|
||||
int main(){
|
||||
HtmlElement body("body");
|
||||
body.SetInnerHTML("Hello World!");
|
||||
//No need to call FreeJs, this is done in the destructor of HtmlElement.
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue