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

Stabilityexperimental
Maintaineralpmestan@gmail.com
Safe HaskellNone

Text.Taggy.Renderer

Description

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

Documentation

class AsMarkup a whereSource

Methods

toMarkup :: Bool -> a -> MarkupSource

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 whereSource

Methods

render :: a -> TextSource

renderWith :: Bool -> a -> TextSource

Instances

AsMarkup a => Renderable a

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