Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (10 sloc) 303 Bytes
# Borrowed from Tanner Burson: http://github.com/tannerburson
# http://github.com/adamstac/sinatra-plugins/blob/master/render_partial.rb
module Sinatra
module RenderPartial
def partial(page, options={})
haml page, options.merge!(:layout => false)
end
end
helpers RenderPartial
end
Jump to Line
Something went wrong with that request. Please try again.