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 Source

Methods

toMarkup :: Bool -> a -> Markup Source

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

Instances

AsMarkup Node

A Node is convertible to Markup

AsMarkup Element

An Element is convertible to Markup

class Renderable a where Source

Minimal complete definition

renderWith

Methods

render :: a -> Text Source

renderWith :: Bool -> a -> Text Source

Instances

AsMarkup a => Renderable a

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