@hackage Shpadoinkle-template0.0.0.2
Read standard file formats into Shpadoinkle with Template Haskell
Categories
License
BSD-3-Clause
Maintainer
isaac.shapira@platonic.systems
Links
Versions
Installation
Dependencies (9)
- Shpadoinkle
- Shpadoinkle-backend-static
- base >=4.12.0 && <4.16
- directory
- html-entities
- html-parse Show all…
Dependents (0)
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>