hamlet-0.8.2: Haml-like template files that are compile-time checked

Text.Cassius

Contents

Synopsis

Datatypes

type Cassius url = (url -> [(Text, Text)] -> Text) -> CssSource

type Css = [CssTop]Source

Type class

Rendering

renderCassius :: (url -> [(Text, Text)] -> Text) -> Cassius url -> TextSource

Parsing

ToCss instances

Color

data Color Source

Constructors

Color Word8 Word8 Word8 

Instances

Size

mkSize :: String -> ExpQSource

Create a CSS size, e.g. $(mkSize 100px).

data AbsoluteUnit Source

Absolute size units.

Constructors

Centimeter 
Inch 
Millimeter 
Pica 
Point 

data AbsoluteSize Source

Not intended for direct use, see mkSize.

Constructors

AbsoluteSize 

Fields

absoluteSizeUnit :: AbsoluteUnit

Units used for text formatting.

absoluteSizeValue :: Rational

Normalized value in centimeters.

absoluteSize :: AbsoluteUnit -> Rational -> AbsoluteSizeSource

Constructs AbsoluteSize. Not intended for direct use, see mkSize.

data PercentageSize Source

Not intended for direct use, see mkSize.

Constructors

PercentageSize 

Fields

percentageSizeValue :: Rational

Normalized value, 1 == 100%.

percentageSize :: Rational -> PercentageSizeSource

Constructs PercentageSize. Not intended for direct use, see mkSize.