module Sinatra::Templates
def builder(template=nil, options={}, &block)
def builder(template=nil, options={}, &block) require 'builder' unless defined? ::Builder options, template = template, nil if template.is_a?(Hash) template = lambda { block } if template.nil? render :builder, template, options end