def get(url)
options = @options
@app ||= Rack::Builder.new {
use Rack::Cache, options[:cache].merge(:verbose => true)
use Nanoc::Extra::CHiCk::CacheController, options[:cache_controller]
run Nanoc::Extra::CHiCk::RackClient
}
env = Rack::MockRequest.env_for(url, :method => 'GET')
puts "[CHiCk] Fetching #{url}..." if $DEBUG
status, headers, body_parts = @app.call(env)
puts "[CHiCk] #{url}: #{headers['X-Rack-Cache']}" if $DEBUG
body = ''
body_parts.each { |part| body << part }
[ status, headers, body ]
end