MoPress includes a lightweight, built-in template engine inspired by Hakyll. It handles variables, conditionals, loops, partial includes, and escaping.
<title>$title$</title>
<p>Author: $author.name$</p>
$if(repository)$
<a href="$repository$">GitHub Repository</a>
$endif$
$if(!draft)$
<span class="badge">Published</span>
$else$
<span class="badge draft">Draft</span>
$endif$
<ul>
$for(items)$
<li><a href="$location$">$title$</a></li>
$endfor$
</ul>
$include("partials/header.html")$
<main>$body$</main>
$include("partials/footer.html")$
To output a literal dollar sign, write $$:
Price: $$100 USD