|fr33domlover e25b7f6699 Merge branch 'whitespace' of h30/shakespeare-sass into master||2 years ago|
|src||2 years ago|
|test||2 years ago|
|.gitignore||3 years ago|
|.travis.yml||3 years ago|
|LICENSE||4 years ago|
|README.md||4 years ago|
|Setup.hs||4 years ago|
|package.yaml||2 years ago|
|stack-lts-2.yaml||4 years ago|
|stack.yaml||2 years ago|
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
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