In my nanoc site, I want to specify my styles using SCSS:
p {
em {
color: red;
}
}
… not SASS:
p
em
color: red
But if I try using SCSS, I get a compile error from the SASS filter. How do I get it to use SCSS?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This turned out to be quite simple:
Filters in nanoc seem to follow the pattern of taking any options they’re given and passing them along to whatever object actually does the work. For instance,
Nanoc::Filters::Sassdoes this in itsrunmethod:Sass::Engine, in turn, has:syntaxas an available option.