ema-0.10.0.0: Static site generator library with hot reload
Safe HaskellSafe-Inferred
LanguageHaskell2010

Ema.Asset

Synopsis

Documentation

data Asset a Source #

The type of assets that can be bundled in a static site.

Constructors

AssetStatic FilePath

A file that is copied as-is from the source directory.

Relative paths are assumed relative to the source directory. Absolute paths allow copying static files outside of source directory.

AssetGenerated Format a

A file whose contents are generated at runtime by user code.

Instances

Instances details
Functor Asset Source # 
Instance details

Defined in Ema.Asset

Methods

fmap :: (a -> b) -> Asset a -> Asset b #

(<$) :: a -> Asset b -> Asset a #

Generic (Asset a) Source # 
Instance details

Defined in Ema.Asset

Associated Types

type Rep (Asset a) :: Type -> Type #

Methods

from :: Asset a -> Rep (Asset a) x #

to :: Rep (Asset a) x -> Asset a #

Show a => Show (Asset a) Source # 
Instance details

Defined in Ema.Asset

Methods

showsPrec :: Int -> Asset a -> ShowS #

show :: Asset a -> String #

showList :: [Asset a] -> ShowS #

Eq a => Eq (Asset a) Source # 
Instance details

Defined in Ema.Asset

Methods

(==) :: Asset a -> Asset a -> Bool #

(/=) :: Asset a -> Asset a -> Bool #

Ord a => Ord (Asset a) Source # 
Instance details

Defined in Ema.Asset

Methods

compare :: Asset a -> Asset a -> Ordering #

(<) :: Asset a -> Asset a -> Bool #

(<=) :: Asset a -> Asset a -> Bool #

(>) :: Asset a -> Asset a -> Bool #

(>=) :: Asset a -> Asset a -> Bool #

max :: Asset a -> Asset a -> Asset a #

min :: Asset a -> Asset a -> Asset a #

type Rep (Asset a) Source # 
Instance details

Defined in Ema.Asset

data Format Source #

The format of a generated asset.

Constructors

Html

Html assets are served by the live server with hot-reload

Other

Other assets are served by the live server as static files.

Instances

Instances details
Generic Format Source # 
Instance details

Defined in Ema.Asset

Associated Types

type Rep Format :: Type -> Type #

Methods

from :: Format -> Rep Format x #

to :: Rep Format x -> Format #

Show Format Source # 
Instance details

Defined in Ema.Asset

Eq Format Source # 
Instance details

Defined in Ema.Asset

Methods

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

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

Ord Format Source # 
Instance details

Defined in Ema.Asset

type Rep Format Source # 
Instance details

Defined in Ema.Asset

type Rep Format = D1 ('MetaData "Format" "Ema.Asset" "ema-0.10.0.0-IvDsUicoMaZ9ZiKA06zERq" 'False) (C1 ('MetaCons "Html" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Other" 'PrefixI 'False) (U1 :: Type -> Type))