taggy-0.2.1: 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 #

Minimal complete definition

toMarkup

Methods

toMarkup :: Bool -> a -> Markup Source #

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

Instances

AsMarkup Node Source #

A Node is convertible to Markup

Methods

toMarkup :: Bool -> Node -> Markup Source #

AsMarkup Element Source #

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 Source #

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

Methods

render :: a -> Text Source #

renderWith :: Bool -> a -> Text Source #