module Pakyow::Plugin::Helpers::Presenter::Rendering
Public Instance Methods
render(view_path = nil, as: nil, modes: [:default])
click to toggle source
Calls superclass method
# File lib/pakyow/plugin/helpers/presenter/rendering.rb, line 13 def render(view_path = nil, as: nil, modes: [:default]) super(File.join(@connection.app.class.mount_path, view_path), as: as, modes: modes) rescue Pakyow::Presenter::UnknownPage # Try rendering the view from the app. # connection = @connection.app.parent.isolated(:Connection).from_connection( @connection, :@app => @connection.app.parent ) connection.app.isolated(:Renderer).render( connection, view_path: view_path, presenter_path: as, modes: modes ) end