Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (12 sloc) 382 Bytes
<?php
require_once 'libs/markdown.php';
$article = 'articles/'.$_GET['article'].'.md';
$theme = (isset($_GET['theme'])) ? $_GET['theme'] : 'notmyidea';
if(file_exists($article)){
$content = file_get_contents($article);
$parser = new Markdown_Parser();
include 'themes/'.$theme.'/_header.php';
echo $parser->transform($content);
include 'themes/'.$theme.'/_footer.php';
}
?>