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-07-06 10:40:17 -07:00

11 lines
No EOL
341 B
Ruby

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