0.3.1 • Published 3 years ago
hexo-renderer-ruby-sass v0.3.1
Hexo Renderer for Ruby Sass with Compass Support
Sass renderer for Hexo that uses Ruby's Sass for indented syntax (.sass) and Compass support.
Options
You can configure this plugin in _config.yml.
ruby_sass:
executable: /path/to/sass
arguments: [--compass, --line-numbers]
By default executable is sass
and arguments is the empty list.
Helpful Code for Similar Cases
https://github.com/knksmith57/hexo-renderer-sass/blob/master/index.js
This is the node-sass implementation of the hexo plugin so probably a good starting point.
https://github.com/imothee/wintersmith-sass/blob/master/plugin.coffee
Wintersmith (another node based static site generator), has a similar plugin architecture to Hexo and there is already this plugin written which uses the npm module child_process
to call sass
.
Dependencies
Note that you must have Ruby and Sass installed already.
Node-Sass
If you don't need Compass or indented syntax support then just use this node-sass plugin for Hexo as it's probably faster.