Prev | Current Page 475 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

add(??? < /div > \n??™);
b.add(??? < div id=???main??? > \n??™);
b.add(renderBreadCrumbs());
b.add(??? < div id=???content??? > \n??™);
return b.toString();
}
private function renderContent() : String
{
return controller.getPageContent(altcontent);
}
private function renderFooter() : String
{
var b = new StringBuf();
b.add(???\n < /div > \n??™);
b.add(??? < /div > \n??™);
b.add(??? < /body > \n??™);
b.add(??? < /html > ??™);
return b.toString();
}
private function renderBreadCrumbs() : String
{
var b : StringBuf = new StringBuf();
b.add(??? < div id=\???breadcrumbs\??? > ??™ + BREADCRUMBS_TEXT + ??? \n??™);
b.add(??? < ul > \n??™);
(continued)
Chapter 9: Building Websites with HaXe
247
var list = controller.getBreadcrumbLinks();
for(i in 0 ... list.length)
{
if(i == list.length -1)
b.add(??? < li > ??™ + list[i].title + ??? < /li > \n???);
else if(list[i].uri == null)
b.add(??? < li > ??™ + list[i].title + ??? ?» < /li > \n???);
else
b.add(??? < li > < a href=?????™ + list[i].uri + ?????? > ??™ +
list[i].


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