snaplet-sass-0.1.2.0: Sass integration for Snap with request- and pre-compilation.

Safe HaskellSafe-Inferred
LanguageHaskell98

Snap.Snaplet.Sass.Internal

Contents

Synopsis

Sass types

data Sass Source

Configuration

Instances

data CompileMode Source

Compile on every request or when Snap starts.

Constructors

Development 
Production 

data Style Source

Style of generated CSS

Instances

helper functions

srcDir :: Sass -> FilePath Source

Location of Sass files

destDir :: Sass -> FilePath Source

Location of CSS files

createDirUnlessExists :: FilePath -> IO () Source

Create given directory unless it exists

compileModeFromString :: String -> Maybe CompileMode Source

Lookup CompileMode for string

styleFromString :: String -> Maybe Style Source

Lookup Style for string

verbosePut :: Sass -> String -> IO () Source

Print log messages when the verbose flag is set