title + ??? < /a > ?»< /li > \n???);
}
b.add(??? < /ul > \n??™);
b.add(??? < /div > \n??™);
return b.toString();
}
private function renderMainLinks() : String
{
var b = new StringBuf();
b.add(??? < div id=???main-links??? > \n < ul > \n??™);
for(item in mainlinks)
b.add(??? < li > < a href=?????™ + item.uri + ?????? > ??™ +
item.title + ??? < /a > < /li > \n??™);
b.add(??? < /ul > \n??™);
b.add(??? < /div > \n??™);
return b.toString();
}
private function getTitle() : String
{
return controller.getTitle();
}
}
typedef LinkItem = {
title : String,
uri : String
}
The PageView.hx file just adds a box in the content area of the page that will be displayed when a
message is passed in the constructor. This message is used to pass the save confirmation message.
class PageView extends Page
{
private var message : String;
public function new(controller : WikiController,
altcontent : String, ?message : String)
{
super(controller, altcontent);
this.message = message;
}
private override function renderContent()
{
var result : String = ?????™;
if(message != ?????™ & & message != null) {
result += ??? < div class=???message??? > ??™ + message + ??? < /div > ??™;
}
(continued)
248
Part II: Server Side, JavaScript, and Flash; Oh My!
return result + super.
Pages:
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488