Sha256: d7afeb57ea96ac42033000525597670387670aa4981cec2a973013032b903299

Contents?: true

Size: 342 Bytes

Versions: 6

Compression:

Stored size: 342 Bytes

Contents

require 'abstract_controller'
require 'action_view'

require 'render_anywhere/version'
require 'render_anywhere/rendering_controller'

module RenderAnywhere
  def render(*args)
    rendering_controller.render_to_string(*args)
  end
  
  def rendering_controller
    @rendering_controller ||= RenderAnywhere::RenderingController.new
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
render_anywhere-0.0.7 lib/render_anywhere.rb
render_anywhere-0.0.6 lib/render_anywhere.rb
render_anywhere-0.0.5 lib/render_anywhere.rb
render_anywhere-0.0.4 lib/render_anywhere.rb
render_anywhere-0.0.3 lib/render_anywhere.rb
render_anywhere-0.0.2 lib/render_anywhere.rb