vendor/sinatra-maruku/lib/sinatra/maruku.rb in middleman-0.3.4 vs vendor/sinatra-maruku/lib/sinatra/maruku.rb in middleman-0.3.5
- old
+ new
@@ -6,11 +6,11 @@
def maruku(template, options={}, locals={})
render :maruku, template, options, locals
end
private
- def render_maruku(template, data, options, locals, &block)
- maruku_src = render_erb(template, data, options, locals, &block)
+ def render_maruku(data, options, locals, &block)
+ maruku_src = render_erb(data, options, locals, &block)
instance = ::Maruku.new(maruku_src, options)
if block_given?
# render layout
instance.to_html_document
else