Skip to content

KyleOndy/hakyll-sass

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hakyll SASS

A library for Hakyll providing a compiler for SASS using hsass. This package can be found on Hackage under hakyll-sass.

To install, run the following command:

cabal install hakyll-sass

Build Status

Master: Build Status Develop: Build Status

Usage Instructions

To use in a Hakyll project, do something similar to the following:

SASS file - css/default.sass:

.example
    border: solid 1px #000000

HTML file - templates/default.html:

<link rel="stylesheet" href="/css/default.css" />
<div class="example">Example</div>

Haskell file - site.hs:

import Hakyll.Web.Sass (sassCompiler)

main = hakyll $ do
    match "css/*.sass" $ do
        route $ setExtension "css"
        let compressCssItem = fmap compressCss
        compile (compressCssItem <$> sassCompiler)

About

Hakyll SASS compiler over hsass

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Haskell 100.0%