front-0.0.0.2: A reactive frontend web framework

Safe HaskellNone
LanguageHaskell2010

Text.Blaze.Front.Renderer

Description

A preliminary renderer that produces JS components when run using Fay.

Synopsis

Documentation

escapeMarkupEntities Source #

Arguments

:: Text

Text to escape

-> Builder

Resulting text builder

Escape predefined XML entities in a text value

fromChoiceString Source #

Arguments

:: ChoiceString

String to render

-> Builder

String to append

-> Builder

Resulting string

Render a ChoiceString.

render :: Show act => Markup act -> Builder -> Builder Source #

Render some Markup to a virtual dom.

This function is morally pure.

renderHtml :: Show act => Markup act -> String Source #

data Handler Source #

Constructors

IgnoreEvent 
HandleEvent (IO (Bool -> IO ()))

Contains an IO action which generates the callback to attach to the event

renderNewMarkup :: Show act => Markup act -> Html Source #