Flutter-Bounty-Hunters / static_shock

A static site generator for Dart.
MIT License
59 stars 5 forks source link

Allow arbitrary template functions, which makes it possible to convert markdown front matter properties to HTML within a template (Resolves #64) #65

Closed matthew-carroll closed 6 months ago

matthew-carroll commented 6 months ago

Allow arbitrary template functions, which makes it possible to convert markdown front matter properties to HTML within a template (Resolves #64)

Front Matter properties can be encoded as Markdown and used as HTML by translating those properties within a page template:

<!--
my_property: This is **Markdown** with `code`.
-->
<html>
  <body>
    <p>{{ md(my_property) }}</p>
  </body>
</html>