{url article/<id>}
{layout "@layout.latte"}

{var $article = $context->getByType('Nette\Database\Context')->table('article')->get($id) OR $presenter->error(404)}

{block content}

← back

{$article->created|date:'F j, Y'}

	<h1 n:block="title">{$article->title}</h1>

	{$article->content|noescape}


Comments

{foreach $article->related('comment')->order('created') as $comment}
	
{$comment->name} said…
	{$comment->content|noescape}
{/foreach}

