Skip to content

dom96/sass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  1. Fork it ( https://github.com/dom96/sass/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

License

MIT

About

Nim bindings to the libsass C++ library

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages