Skip to content

Instantly share code, notes, and snippets.

@darrenmothersele
Created February 9, 2014 13:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darrenmothersele/8899153 to your computer and use it in GitHub Desktop.
Save darrenmothersele/8899153 to your computer and use it in GitHub Desktop.
Jekyll plugin to allow compliation of Compass SASS, as explained here: http://darrenmothersele.com/blog/2014/02/07/from-prototype-to-drupal-theme-2/
require 'sass'
require 'pathname'
require 'compass'
require 'compass/exec'
module Jekyll
class CompassGenerator < Generator
safe true
def generate(site)
Compass::Exec::SubCommandUI.new(%w(compile)).run!
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment