<?php
/*
{
	"id" : "article-viewer",
	"category": "article",
	"name": "Article Viewer"
}
*/

if (!is_file(__DIR__ . "/article-viewer.html"))
	exit( pathinfo(__FILE__, PATHINFO_FILENAME) . ": template not found." );

$article				= $result;
$article				= (new ComponentModule())->data($article, "1:1")->markupFile( __DIR__ . "/article-viewer.html" );

$content				= $article->article();

$SiteShell->replace('article', PHP_EOL . $content);
$SiteShell->render();

