Skip to content

Instantly share code, notes, and snippets.

@gerrit
Created November 9, 2010 10:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save gerrit/668957 to your computer and use it in GitHub Desktop.
Save gerrit/668957 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