Prev | Current Page 478 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

add(??? < textarea name=???content??? > ??™);
return b.toString();
}
private override function renderFooter()
{
var b = new StringBuf();
b.add(??? < /textarea > \n??™);
b.add(??? < /div > \n??™);
b.add(??? < div class=???control??? > \n??™);
b.add(??? < input type=???button??? ???);
b.add(???onclick=???window.location=\??™??™ + controller.uri + ???\??™??? ???);
b.add(???name=???cancel??? value=???Cancel??? / > \n??™);
b.add(??? < input type=???submit??? name=???submit??? value=???Save??? / > \n??™);
b.add(??? < /div > \n??™);
b.add(??? < /form > ??™);
b.add(super.renderFooter());
return b.toString();
}
}
(continued)
Chapter 9: Building Websites with HaXe
249
The whole code for the Wiki application has been written. Now it is time to compile and see the result.
Add the Wiki.hxml file in the project directory. The content is very similar to one in the previous example:
-cp src
-neko web/index.n
-main WikiApplication
This time the main class is WikiApplication and the compiled unit will be index.


Pages:
466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490