public
Last active

  • Download Gist
upcase.rb
Ruby
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
# An example Jekyll converter. Utilizes the new plugin system.
#
#
# 1. Make a _plugins directory in your jekyll site, and put this class in a file there.
# 2. Any file in the _posts directory ending in .upcase will be processed using this converter.
 
module Jekyll
class UpcaseConverter < Converter
safe true
 
priority :low
 
def matches(ext)
ext =~ /upcase/i
end
 
def output_ext(ext)
".html"
end
 
def convert(content)
content.upcase
end
end
end

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.