webpage alternatives and similar packages
Based on the "Unclassified" category.
Alternatively, view generic-lucid-scaffold alternatives based on common mentions on social networks and blogs.
-
bit-stream
Lazy infinite compact streams with cache-friendly O(1) indexing and applications for memoization -
dependent-sum-template
DISCONTINUED. Template Haskell code to generate instances of classes in dependent-sum package -
argon2
Haskell bindings to libargon2 - the reference implementation of the Argon2 password-hashing function
CodeRabbit: AI Code Reviews for Developers
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of webpage or a related project?
README
webpage
This is a general web page scaffold written in Haskell for the Lucid Html DSL.
Usage
It's pretty straigt forward:
λ> renderText $ template def "some content"
"<!DOCTYPE HTML><html><head><title></title><link href rel="icon"></head><body>some content</body></html>"
overload the particular areas with record syntax, or do whatever:
λ> let page = def {pageTitle = "foo", bodyScripts = script_ [src_ "jquery.js"] ""}
λ> template page "some content"
"<!DOCTYPE HTML><html><head><title>foo</title><link href rel=\"icon\"></head><body>some content<script src=\"jquery.js\"></script></body></html>"
Note: When using the Hastache implementation, the content inside a
WebPage
data type will be in the same scope as the rest of the template - you can access the things your final content will see frommetaVars
, for instance (unless you do multiple renderings).Another Note: We don't provide an instance for the beloved Hamlet because under the hood, it's just Blaze-Html -
$(runQ $ shamletFile "foo.hamlet")
gives us anHtml
.
Contributing
Fork, Pull-Request, repeat.