The shakespeare-sass package

[Tags:bsd3, library]

SASS support for Shakespeare and Yesod

[Skip to Readme]


Dependencies base (==4.*), hsass (>=0.2.0 && <0.5.0), shakespeare (==2.0.*), template-haskell, yesod (>=1.4.1 && <1.5.0), yesod-core (>=1.4.6 && <1.5.0) [details]
License BSD3
Author Filip Brcic
Category Web
Home page
Source repository head: git clone
Uploaded Mon Jun 13 22:52:48 UTC 2016 by brcha
Distributions NixOS:
Downloads 122 total (2 in the last 30 days)
0 []
Status Docs available [build log]
Last success reported on 2016-06-13 [all 1 reports]
Hackage Matrix CI




Maintainer's Corner

For package maintainers and hackage trustees

Readme for shakespeare-sass

Readme for shakespeare-sass-

Shakespeare SASS

Build Status Hackage Hackage deps


Shakepeare SASS is a package to enable the usage of SASS language in the Yesod web framework.

Using Shakespeare SASS

Adding SASS support to your Yesod website is, actually, quite simple and straight-forward. After adding shakespeare-sass into your .cabal file (and stack.yaml if you are using stack), all you have to do is change your widgetFileSettings in Settings.hs from = def to = wfsSass ["sass_include/"]. And, of course, import Text.Shakespeare.Sass at the beginning of the file.

The argument for wfsSass function is a list of directories relative to the project root where you want your .sass or .scss include files stored. The main SASS files will still reside in your templates directory, as it is with the default setup with .lucius files. That way you get to keep your mixins separate from the templates and have a clear directory structure. Of course, you can always add your templates directory to sass search path and keep everything in templates dir.

Note about deployment with Keter

In case you are using Keter for deployment (and you should, it's a great tool), you should also add directories with your sass templates to the extraFiles: list in the config/keter.yaml file. Don't forget to put the ../ prefix, since keter.yaml's paths are relative to the config directory.