SASS support for Shakespeare and Yesod https://github.com/brcha/shakespeare-sass
|Latest on Hackage:||0.1.0.3|
This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.
Using Shakespeare SASS
Adding SASS support to your Yesod website is, actually,
quite simple and straight-forward.
shakespeare-sass into your
stack.yaml if you are using stack),
all you have to do is change your
= 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
.scss include files stored.
The main SASS files will still reside in your
as it is with the default setup with
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
to sass search path and keep everything in
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
extraFiles: list in the
Don't forget to put the
../ prefix, since
keter.yaml's paths are
relative to the