Shpadoinkle-template: Read standard file formats into Shpadoinkle with Template Haskell

[ bsd3, library, web ] [ Propose Tags ]

This package provides TH functions to read files at compile time and embed them into Shpadoinkle views.

[Skip to Readme]
Versions [faq]
Change log
Dependencies base (>=4.12.0 && <4.16), html-parse, Shpadoinkle, Shpadoinkle-backend-static, template-haskell, text (>=1.2.3 && <1.3) [details]
License BSD-3-Clause
Author Isaac Shapira
Category Web
Source repo head: git clone
Uploaded by fresheyeball at 2021-03-13T04:53:00Z
Distributions NixOS:
Downloads 27 total (3 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs not available [build log]
All reported builds failed as of 2021-03-13 [all 2 reports]


  • Shpadoinkle
    • Shpadoinkle.Template
      • Shpadoinkle.Template.TH


Maintainer's Corner

For package maintainers and hackage trustees

Readme for Shpadoinkle-template-

[back to package description]

Shpadoinkle Template

Goldwater Haddock BSD-3 built with nix Hackage Hackage Deps Hackage CI

This module provides the ability to read files into Shpadoinkle views.


Lets say you have template.html

<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">
  <div>Nice to meat you</div>