lib/pakyow/presenter/renderer.rb in pakyow-presenter-1.0.0.rc2 vs lib/pakyow/presenter/renderer.rb in pakyow-presenter-1.0.0.rc3

- old
+ new

@@ -5,11 +5,11 @@ require "pakyow/support/hookable" require "pakyow/support/core_refinements/proc/introspection" require "pakyow/support/core_refinements/string/normalization" -require "pakyow/presenter/rendering/actions/render_components" +require "pakyow/presenter/renderer/behavior/render_components" require "pakyow/presenter/composers/view" module Pakyow module Presenter @@ -153,10 +153,11 @@ end connection.rendered end + # @api private def render_implicitly(connection) view_path = connection.get(:__endpoint_path) || connection.path if render_implicitly?(connection) begin @@ -177,10 +178,11 @@ connection.app.controller_for_connection(connection).handle_error(error) end end end + # @api private def build!(view, app:, modes:, composer:) @__build_fns.each do |fn| options = {} if fn.keyword_argument?(:app) @@ -197,10 +199,11 @@ fn.call(view, **options) end end + # @api private def attach!(presenter, app:) @__attach_fns.each do |fn| options = {} if fn.keyword_argument?(:app) @@ -209,15 +212,17 @@ fn.call(presenter, **options) end end + # @api private def expose!(connection) @__expose_fns.each do |fn| fn.call(connection) end end + # @api private def find_presenter(app, path) path = String.normalize_path(path) unless presenter = @__presenters_by_path[path] presenter = if path.nil? || Pakyow.env?(:prototype) app.isolated(:Presenter)