atomic-css-0.1.0: Type-safe, composable CSS utility functions. Inspired by Tailwindcss and Elm-UI
Safe HaskellNone
LanguageGHC2021

Web.Atomic.Render

Synopsis

Documentation

htmlLines :: Int -> Html a -> [Line] Source #

newtype FlatAttributes Source #

Element's attributes do not include class, which is separated. FlatAttributes generate the class attribute and include it

Instances

Instances details
Eq FlatAttributes Source # 
Instance details

Defined in Web.Atomic.Render

elementAttributes :: Element -> FlatAttributes Source #

The FlatAttributes for an element, inclusive of class.

data Line Source #

Constructors

Line 

Fields

Instances

Instances details
IsString Line Source # 
Instance details

Defined in Web.Atomic.Render

Methods

fromString :: String -> Line #

Show Line Source # 
Instance details

Defined in Web.Atomic.Render

Methods

showsPrec :: Int -> Line -> ShowS #

show :: Line -> String #

showList :: [Line] -> ShowS #

Eq Line Source # 
Instance details

Defined in Web.Atomic.Render

Methods

(==) :: Line -> Line -> Bool #

(/=) :: Line -> Line -> Bool #

data LineEnd Source #

Constructors

Newline 
Inline 

Instances

Instances details
Show LineEnd Source # 
Instance details

Defined in Web.Atomic.Render

Eq LineEnd Source # 
Instance details

Defined in Web.Atomic.Render

Methods

(==) :: LineEnd -> LineEnd -> Bool #

(/=) :: LineEnd -> LineEnd -> Bool #

renderLines :: [Line] -> Text Source #

Render lines to text