Sha256: bdf51ad5d8ccf02c2cef1a5917ab80c6de1a3ecc38d1d9d7393db20f736c16dd
Contents?: true
Size: 550 Bytes
Versions: 5
Compression:
Stored size: 550 Bytes
Contents
# encoding: UTF-8 module Spontaneous::Plugins module Render extend ActiveSupport::Concern def output(format = :html) return page.output(format, self) if page raise "Cannot render content without enclosing page" end def render(format = :html, params = {}, *args) params, format = format, :html if format.is_a?(Hash) output(format).render(params, *args) end def render_using(renderer, format = :html, params = {}, *args) output(format).render_using(renderer, params, *args) end end end
Version data entries
5 entries across 5 versions & 1 rubygems