bulmex-3.0.0: Reflex infused with bulma (css)

Safe HaskellNone
LanguageHaskell2010

Reflex.Bulmex.Html

Contents

Description

A root for an app, usefull for server side html rendering. has a neat api for the head tag, use this if that api suits your needs. For more info see blogpost: https://jappieklooster.nl/reflex-server-side-html-rendering.html

Synopsis

Documentation

htmlWidget :: DomBuilder t m => HeadSettings -> m a -> m a Source #

Adds the core html tags. we already know most of the head.

 <html>
   <head>
    'HeadSettings' <!-- provided settings --!>
   </head>
   <body>
   'm a' <!-- provided monad --!>
   </body>
 </html>

Head tag stuff

data HeadSettings Source #

Constructors

HeadSettings 
Instances
Show HeadSettings Source # 
Instance details

Defined in Reflex.Bulmex.Html

Generic HeadSettings Source # 
Instance details

Defined in Reflex.Bulmex.Html

Associated Types

type Rep HeadSettings :: Type -> Type #

type Rep HeadSettings Source # 
Instance details

Defined in Reflex.Bulmex.Html

type Rep HeadSettings = D1 (MetaData "HeadSettings" "Reflex.Bulmex.Html" "bulmex-3.0.0-HWOvgABb2oOJ1ArsSp9jCO" False) (C1 (MetaCons "HeadSettings" PrefixI True) (S1 (MetaSel (Just "_head_js") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [HeadScript]) :*: (S1 (MetaSel (Just "_head_css") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [URI]) :*: S1 (MetaSel (Just "_head_title") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text))))

data HeadScript Source #

Constructors

HeadScript 
Instances
Show HeadScript Source # 
Instance details

Defined in Reflex.Bulmex.Html

Generic HeadScript Source # 
Instance details

Defined in Reflex.Bulmex.Html

Associated Types

type Rep HeadScript :: Type -> Type #

type Rep HeadScript Source # 
Instance details

Defined in Reflex.Bulmex.Html

type Rep HeadScript = D1 (MetaData "HeadScript" "Reflex.Bulmex.Html" "bulmex-3.0.0-HWOvgABb2oOJ1ArsSp9jCO" False) (C1 (MetaCons "HeadScript" PrefixI True) (S1 (MetaSel (Just "_script_is_async") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Bool) :*: S1 (MetaSel (Just "_script_uri") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 URI)))

Defaults

Load

writeReadDom :: (FromJSON a, ToJSON a, DomBuilder t m, Prerender js t m) => Text -> a -> m (Dynamic t a) Source #

Insert an encodable in the document body, in case of the server side rendering we encode it as script tag with jsonval, in case of ghcjsdom we read the value from that script tag first arg is the idname to connect the two up (has to be uniq for a doc)