1
0
Fork 0
mirror of https://github.com/middleman/middleman.git synced 2022-11-09 12:20:27 -05:00
middleman--middleman/lib/middleman/features/tiny_src.rb
2011-04-25 13:45:54 -07:00

11 lines
No EOL
341 B
Ruby

module Middleman::Features::TinySrc
class << self
def registered(app)
Middleman::Assets.register :tiny_src do |path, prefix, request|
original_output = Middleman::Assets.before(:tiny_src, path, prefix, request)
"http://i.tinysrc.mobi/#{original_output}"
end
end
alias :included :registered
end
end