Description
Read standard file formats into Shpadoinkle with Template Haskell.
Description
This package provides TH functions to read files at compile time and embed them into Shpadoinkle views.
README.md
Shpadoinkle Template
This module provides the ability to read files into Shpadoinkle views.
Usage
Lets say you have template.html
<h1>Hi!</h1>
<div>Nice to meat you</div>
you can now embed it into a Shpadoinkle
view :: Html m a
view = div [ className "my-view" ] $(embedHtml "./template.html")
which will render as
<div class="my-view">
<h1>Hi!</h1>
<div>Nice to meat you</div>
</div>