yuiGrid-0.1: Grids defined by layout hints and implemented on top of Yahoo grids.

Text.CxML

Synopsis

Documentation

(^#) :: CxML a -> String -> CxML aSource

(^.) :: CxML a -> String -> CxML aSource

t :: String -> CxML aSource

create a text node. Automatically escape HTML to protect against XSS

(!) :: CxML a -> (String, String) -> CxML aSource

set any attribute of HTML element

(^%) :: CxML a -> [StyleDecl] -> CxML aSource

set style

(^^.) :: CxML a -> CssInlineDecl -> CxML aSource

create HTML to link to a CSS file

tag :: String -> CxML aSource

combinator to create tags

type CssInlineDecl = (String, [(String, String)])Source

how to declare CSS & JavaScript

data CxML a Source

contextual markup - generates HTML as a function of a context of type a. also keep track of static CSS and JavaScript

Instances

CxMLChild a [CxML a] 
CxMLChild a (CxML a) 

(/-) :: CxML b -> [CxML b] -> CxML bSource

(+++) :: CxML a -> CxML a -> CxML aSource

withCtx :: (a -> CxML a) -> CxML aSource

modCx :: (b -> a) -> CxML a -> CxML bSource

access title parts

access JavaScript ( static) part

access CSS ( static ) part

access html (dynamic) part