Easier to maintain template structure

This the head and footer don't have to be included everytime and the hierarchy is easier to read
This commit is contained in:
Pierre Rudloff 2022-02-03 21:38:29 +01:00
parent de74808459
commit ac8c53375a
11 changed files with 201 additions and 195 deletions

View file

@ -1,8 +1,8 @@
{include file='inc/head.tpl'}
<div class="wrapper">
<main class="main error">
{extends file='page.tpl'}
{block name='main'}
<div class="error">
{include file="inc/logo.tpl"}
<h2>{t}An error occurred{/t}</h2>
<p><i>{$error|escape|nl2br}</i></p>
</main>
{include file='inc/footer.tpl'}
</div>
{/block}