lifecycle update
This commit is contained in:
parent
84ce42f106
commit
0b7a43efbd
14 changed files with 950 additions and 490 deletions
|
|
@ -2,9 +2,9 @@ import Crafter.CppDOM;
|
|||
using namespace Crafter;
|
||||
|
||||
int main(){
|
||||
HtmlElementView body("body","<div id=\"myDiv\"></div>");
|
||||
HtmlElementPtr body("body","<div id=\"myDiv\"></div>");
|
||||
// Create a div element
|
||||
HtmlElementView div("myDiv");
|
||||
HtmlElementPtr div("myDiv");
|
||||
|
||||
// Set some initial content
|
||||
div.SetInnerHTML("<p>This is a styled paragraph</p>");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue