Richard Hart

Head of Something @ Somewhere
Kent, UK

My Music
My Photos


Using SCSS with Webby

To get webby using HAML/SASS’ SCSS rendering engine I added the following to my Sitefile. No doubt there’s a cleaner and quicker way of getting it working, but this works.

  Webby::Filters.register :scss do |input, cursor|
    opts = || {})
    opts = => :scss)
    opts = opts.symbolize_keys
    opts.merge!(:filename =>
    opts[:style] = opts[:style].to_sym if opts.include? :style, opts).render