snaplet-coffee-0.1.0.2: CoffeeScript for Snap, auto-compilation and pre-compilation.

Safe HaskellSafe-Inferred

Snap.Snaplet.Coffee.Utils

Synopsis

Documentation

data CompileMode Source

Simple data structure for CompileMode

Constructors

Development 
Production 

data CoffeeScript Source

The CoffeeScript Snaplet Configuration

Instances

allCoffeeFiles :: CoffeeScript -> IO [FilePath]Source

Gets all the .coffee files in the source directory

destDir :: CoffeeScript -> FilePathSource

Destination directory

srcDir :: CoffeeScript -> FilePathSource

Source directory

createDirUnlessExists :: FilePath -> IO ()Source

Function to create directories if they don't exist

getCompilerMode :: Maybe String -> CompileModeSource

Gets the CompileMode

getDestDir :: Maybe String -> CoffeeScript -> FilePathSource

Gets the destination directory

requestedCoffeeFile :: String -> FilePathSource

Converts pathtofile.js to file.coffee