# From the gem root repository, run: # $ ruby example/sinatra_tracker.rb require 'sinatra' $: << "lib" require "colissimo" get '/' do tracking_code = params[:tracking_code] output = "
" if tracking_code tracking_rows = Colissimo::Tracker.new(tracking_code).tracking_rows output += "" tracking_rows.each do |row| output += " " output += " " output += " " output += " " output += " " end output += "
" end output end