A removePage() occurs when the user sends an empty content. The file is removed and not
simply left empty, to avoid filling the repository of garbage files.
The getPageContent() is a public method used by the Page classes to retrieve the content of the page.
A default value may be provided as argument for the method; this is used when the requested page does
not exist. The getTitle() and the getBreadcrumbLinks() are also used by the Page classes and they
respectively return the title of the page derived by its URI and a list of objects containing the link
information about the current page and its ancestors. The other private method exists to support the
previous described operations and are quite self - explanatory.
import haxe.Stack;
import neko.FileSystem;
import neko.io.File;
import neko.io.FileOutput;
import neko.Lib;
import Page;
class WikiController
{
private static var FILE_EXTENSION = ???.wiki??™;
private static var ROOT_PAGE = ???/root??™;
private static var ROOT_URI = ???/??™;
private static var DEFAULT_EDIT_TEXT = ?????™;
private static var DEFAULT_VIEW_TEXT = ???This page does not exist,
click on edit to create it.
Pages:
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480