Skip to content

Instantly share code, notes, and snippets.

@marcoslhc
Forked from gerrit/less_converter.rb
Created May 29, 2013 17:29
Show Gist options
  • Save marcoslhc/5672118 to your computer and use it in GitHub Desktop.
Save marcoslhc/5672118 to your computer and use it in GitHub Desktop.
require 'less'
module Jekyll
class Less < Converter
safe true
priority :low
def matches(ext)
ext =~ /less/i
end
def output_ext(ext)
".css"
end
def convert(content)
::Less.parse content
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment