Prev | Current Page 480 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

n file. This feature is available in Apache when the module mod_rewrite is
activated or in the Neko Server when invoked with the - rewrite switch. Therefore, you will probably
have to stop your Neko Server and restart it this way:
> nekotools server -rewrite
Now you can refresh the edit page, insert some contents in the provided form and confirm the
submission. The page content is now correctly saved and visualized. The visual result is not very good
but you can rapidly improve it by adding a style sheet and a small logo image. The references to those
files are already in place in the code produced by the Page class. Add a directory assets in the web
directory and create an image with the name logo.png (you can use your image editor of choice to do
that). For the style sheet, you add the file main.css with the following content and watch the result.
* { margin: 0; padding: 0; font-size: 9pt;
font-family: Verdana, sans-serif; }
img { border: 0; }
div.message { margin: 10px 0; padding: 4px 4px 4px 32px;
font-weight: bold; border: 1px solid; }
div.


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