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