Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (21 sloc) 683 Bytes
* This is a Anax pagecontroller.
// Include the essential config-file which also creates the $anax variable with its defaults.
// Prepare the content
$html = <<<EOD
Detta är ett exempel på markdown
En länk till [Markdowns hemsida](
// Filter the content
$filter = new CTextFilter();
$html = $filter->doFilter($html, "markdown");
// Do it and store it all in variables in the Anax container.
$anax['title'] = "Kasta tärning";
$anax['main'] = $html;
// Finally, leave it all to the rendering phase of Anax.