Popularity
2.9
Declining
Activity
0.0
Stable
3
3
0
Monthly Downloads: 1
Programming language: Haskell
License: LicenseRef-GPL
hack-contrib-press alternatives and similar packages
Based on the "Text" category.
Alternatively, view hack-contrib-press alternatives based on common mentions on social networks and blogs.
-
pandoc-citeproc
Library and executable for using citeproc with pandoc -
scholdoc
Fork of Pandoc for the implementation of a ScholarlyMarkdown parser -
texmath
A Haskell library for converting LaTeX math to MathML. -
prettyprinter
A modern, extensible and well-documented prettyprinter. -
blaze-from-html
A blazingly fast HTML combinator library for Haskell. -
skylighting
A Haskell syntax highlighting library with tokenizers derived from KDE syntax highlighting descriptions -
commonmark
Pure Haskell commonmark parsing library, designed to be flexible and extensible -
text-offset
Emits code crossreference data for Haskell sources. -
regex-genex
Given a list of regexes, generate all possible strings that matches all of them. -
regex-applicative
Regex-based parsing with an applicative interface -
pandoc-csv2table
A Pandoc filter that renders CSV as Pandoc Markdown Tables. -
servant-checked-exceptions
type-level errors for Servant APIs. -
double-conversion
A fast Haskell library for converting between double precision floating point numbers and text strings. It is implemented as a binding to the V8-derived C++ double-conversion library. -
pretty-show
Tools for working with derived Show instances in Haskell. -
text-format
A Haskell text formatting library optimized for ease of use and high performance. -
diagrams-pandoc
A pandoc filter to express diagrams inline using the haskell EDSL diagrams.
Collect and Analyze Billions of Data Points in Real Time
Manage all types of time series data in a single, purpose-built database. Run at any scale in any environment in the cloud, on-premises, or at the edge.
Promo
www.influxdata.com
* 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 hack-contrib-press or a related project?
README
Hack.Contrib.Press
Quickstart
Small.hs
{-# LANGUAGE DeriveDataTypeable #-}
{-# OPTIONS -fglasgow-exts #-}
module Main where
import Hack
import Hack.Contrib.Press (renderToResponse)
import Hack.Handler.Happstack (run)
import Text.JSON.Generic
data Profile = Profile {
name :: String,
favoriteMusic :: [String]
} deriving (Data, Typeable)
main = run $ \env -> do renderToResponse env "small.html" context
where aProfile = Profile "Brandon Bickford" ["Rock"]
context = [toJSON aProfile]
small.html
<html>
<body>
<p>
Hey <b>{{ name }}</b>, I heard you like:
<ul>
{% for music in favoriteMusic %}
<li>{{ music }}</li>
{% endfor %}
</ul>
</p>
</body>
</html>
Run
- Run: cabal install hack-contrib-press
- Add "Small.hs" and "small.html"
- Run: ghc --make -o small Small.hs
- Run: ./small
- In your browser visit: http://localhost:3000