sass provides a Sass/SCSS to CSS compiler for Nim through bindings to libsass
.
API Documentation · GitHub Repo
Add this to your application's .nimble file:
requires "sass"
or to install globally run:
nimble install sass
import sass
# Compile a Sass/SCSS file:
compileFile("style.scss")
# Compile a Sass/SCSS file with options:
compileFile("style.sass", outputPath="style.css", includePaths = @["includes"])
# Compile a Sass/SCSS string:
let css = compile("body { div { color: red; } }")
- Fork it ( https://github.com/dom96/sass/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
MIT