# Shpadoinkle Template
[](https://gitlab.com/platonic/shpadoinkle)
[](https://shpadoinkle.org/template)
[](https://opensource.org/licenses/BSD-3-Clause)
[](https://builtwithnix.org)
[](https://hackage.haskell.org/package/Shpadoinkle-template)
[](http://packdeps.haskellers.com/reverse/Shpadoinkle-template)
[](https://matrix.hackage.haskell.org/#/package/Shpadoinkle-template)
This module provides the ability to read files into Shpadoinkle views.
## Usage
Lets say you have `template.html`
```html
<h1>Hi!</h1>
<div>Nice to meat you</div>
```
you can now embed it into a Shpadoinkle
```haskell
view :: Html m a
view = div [ className "my-view" ] $(embedHtml "./template.html")
```
which will render as
```html
<div class="my-view">
<h1>Hi!</h1>
<div>Nice to meat you</div>
</div>
```