taggy-0.2.0: Efficient and simple HTML/XML parsing library

Copyright(c) 2014 Alp Mestanogullari Vikram Verma
LicenseBSD3
Maintaineralpmestan@gmail.com
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Text.Taggy.Renderer

Description

Render a DOM tree (from Text.Taggy.DOM) using the excellent blaze markup rendering library.

Synopsis

Documentation

class AsMarkup a where #

Minimal complete definition

toMarkup

Methods

toMarkup :: Bool -> a -> Markup #

If the first parameter is true, we align the constructors for entity conversion.

Instances

AsMarkup Node #

A Node is convertible to Markup

Methods

toMarkup :: Bool -> Node -> Markup #

AsMarkup Element #

An Element is convertible to Markup

Methods

toMarkup :: Bool -> Element -> Markup #

class Renderable a where #

Minimal complete definition

renderWith

Methods

render :: a -> Text #

renderWith :: Bool -> a -> Text #

Instances

AsMarkup a => Renderable a #

Any value convertible to Markup can be rendered as HTML, by way of render and renderWith.

Methods

render :: a -> Text #

renderWith :: Bool -> a -> Text #