Awesome
sass
sass provides a Sass/SCSS to CSS compiler for Nim through bindings to libsass
.
API Documentation · GitHub Repo
Installation
Add this to your application's .nimble file:
requires "sass"
or to install globally run:
nimble install sass
Usage
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; } }")
Contributing
- 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
License
MIT