Add built in validation, using local catalogs! Catalogs also removes our HTML Purifie...
[xhtml-compiler.git] / main.php
blobaf3a0870aa90d56343bc575ae047088b3184dde3
1 <?php
3 /**
4 * Takes a cache miss and generates the file if it is valid.
5 * @note Use ?purge=1 in order to force regeneration of the file
6 */
8 require 'common.php';
10 $xc = XHTMLCompiler::getInstance();
12 $page = get_page_from_get();
13 if ($page === false) $page = get_page_from_server();
14 $page = normalize_index($page, $xc->getConf('directory_index'));
16 $page = new XHTMLCompiler_Page($page);
17 $page->display();