No description
Find a file
George Lemon c466216018 support sourceMap | add compileSass proc
Signed-off-by: George Lemon <georgelemon@protonmail.com>
2023-01-17 10:57:43 +00:00
src support sourceMap | add compileSass proc 2023-01-17 10:57:43 +00:00
tests support sourceMap | add compileSass proc 2023-01-17 10:57:43 +00:00
.gitignore Initial commit. 2018-05-07 16:22:49 +01:00
README.md Fixes readme typo. 2018-05-22 12:39:36 +01:00
sass.nimble Bump to version 0.3.0 2022-06-06 23:19:40 +01:00

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