| CARVIEW |
Select Language
HTTP/1.1 200 OK
Connection: keep-alive
Server: nginx/1.24.0 (Ubuntu)
Content-Type: text/html; charset=utf-8
Cache-Control: public, max-age=300
Content-Encoding: gzip
Via: 1.1 varnish, 1.1 varnish
Accept-Ranges: bytes
Age: 0
Date: Sun, 18 Jan 2026 01:47:33 GMT
X-Served-By: cache-dfw-kdal2120130-DFW, cache-bom-vanm7210066-BOM
X-Cache: MISS, MISS
X-Cache-Hits: 0, 0
X-Timer: S1768700853.964957,VS0,VE320
Vary: Accept, Accept-Encoding
transfer-encoding: chunked
Shpadoinkle-template: Read standard file formats into Shpadoinkle with Template Haskell
[Skip to Readme]
Shpadoinkle-template: Read standard file formats into Shpadoinkle with Template Haskell
This package provides TH functions to read files at compile time and embed them into Shpadoinkle views.
[Skip to Readme]
Modules
- Shpadoinkle
- Shpadoinkle.Template
- Shpadoinkle.Template.TH
- Shpadoinkle.Template
Downloads
- Shpadoinkle-template-0.0.0.2.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
| Versions [RSS] | 0.0.0.1, 0.0.0.2 |
|---|---|
| Dependencies | base (>=4.12.0 && <4.16), directory, html-entities, html-parse, process, Shpadoinkle, Shpadoinkle-backend-static, template-haskell, text (>=1.2.3 && <1.3) [details] |
| License | BSD-3-Clause |
| Author | Isaac Shapira |
| Maintainer | isaac.shapira@platonic.systems |
| Uploaded | by fresheyeball at 2021-06-02T18:11:56Z |
| Category | Web |
| Source repo | head: git clone https://gitlab.com/platonic/shpadoinkle.git |
| Distributions | |
| Downloads | 378 total (7 in the last 30 days) |
| Rating | (no votes yet) [estimated by Bayesian average] |
| Your Rating |
|
| Status | Docs not available [build log] All reported builds failed as of 2021-06-02 [all 2 reports] |
Readme for Shpadoinkle-template-0.0.0.2
[back to package description]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>