web-rep-0.1.2: representations of a web pag
Web.Page.Html
Contents
class__ :: Text -> Attribute Source #
toText :: Html a -> Text Source #
genName :: MonadState Int m => m Text Source #
name supply for html elements
genNamePre :: MonadState Int m => Text -> m Text Source #
sometimes a number doesn't work properly in html (or js???), and an alpha prefix seems to help
libCss :: Text -> Html () Source #
libJs :: Text -> Html () Source #
fromHex :: Parser PixelRGB8 Source #
toHex :: PixelRGB8 -> Text Source #
type Html = HtmlT Identity #
Simple HTML builder type. Defined in terms of HtmlT. Check out that type for instance information.
HtmlT
Simple use-cases will just use this type. But if you want to transformer over Reader or something, you can go and use HtmlT.
Methods
toHtml :: Monad m => Bool -> HtmlT m () #
toHtmlRaw :: Monad m => Bool -> HtmlT m () #
toHtml :: Monad m => Double -> HtmlT m () #
toHtmlRaw :: Monad m => Double -> HtmlT m () #
toHtml :: Monad m => Int -> HtmlT m () #
toHtmlRaw :: Monad m => Int -> HtmlT m () #
toHtml :: Monad m => () -> HtmlT m () #
toHtmlRaw :: Monad m => () -> HtmlT m () #
toHtml :: Monad m => PixelRGB8 -> HtmlT m () #
toHtmlRaw :: Monad m => PixelRGB8 -> HtmlT m () #