Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dom96/sass
Nim bindings to the libsass C++ library
https://github.com/dom96/sass
css nim nim-lang nim-language sass
Last synced: 4 months ago
JSON representation
Nim bindings to the libsass C++ library
- Host: GitHub
- URL: https://github.com/dom96/sass
- Owner: dom96
- Created: 2018-05-07T15:23:07.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-17T10:57:43.000Z (about 2 years ago)
- Last Synced: 2023-03-11T01:38:52.194Z (almost 2 years ago)
- Topics: css, nim, nim-lang, nim-language, sass
- Language: Nim
- Homepage:
- Size: 14.6 KB
- Stars: 12
- Watchers: 1
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sass
**sass** provides a Sass/SCSS to CSS compiler for [Nim](https://nim-lang.org) through bindings to [`libsass`](https://github.com/sass/libsass/).
**[API Documentation](https://nimble.directory/docs/sass)** ·
**[GitHub Repo](https://github.com/dom96/sass)**## Installation
Add this to your application's .nimble file:
```nim
requires "sass"
```or to install globally run:
```
nimble install sass
```## Usage
```nim
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