mirror of
https://github.com/middleman/middleman.git
synced 2022-11-09 12:20:27 -05:00
11 lines
No EOL
341 B
Ruby
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 |