Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (13 sloc) 273 Bytes
# encoding: utf-8
require 'sinatra/base'
module Sinatra
module PartialPartials
def local_get(url)
call(env.merge("PATH_INFO" => url)).last.join
end
def partial( page, variables={} )
haml page, {layout:false}, variables
end
end
helpers PartialPartials
end