Sha256: 16951bbdd299488f4b352b13d6d63f005e799edc169781d3535b48951f32f2ef
Contents?: true
Size: 752 Bytes
Versions: 8
Compression:
Stored size: 752 Bytes
Contents
require 'sinatra' require 'sinatra/contrib' set :logging, false get '/true' do out = case params[:rdiff] when 'blahbad' 'Could not find any results, bugger off!' when 'blahgood', 'blah' '1 item found: Blah blah blah...' else 'No idea what you want mate...' end <<-EOHTML <a href='?rdiff=blah'>Inject here</a> #{out} EOHTML end get '/false' do out = case params[:rdiff] when 'blahgood', 'blahbad' 'Could not find any results, bugger off!' when 'blah' '1 item found: Blah blah blah...' else 'No idea what you want mate...' end <<-EOHTML <a href='?rdiff=blah'>Inject here</a> #{out} EOHTML end
Version data entries
8 entries across 8 versions & 1 rubygems