Sha256: 9ff3ef4dc16eec6930d4443aeb0081def09db04599cb8c5eebc5597d51450de9
Contents?: true
Size: 722 Bytes
Versions: 5
Compression:
Stored size: 722 Bytes
Contents
require 'hanami/view/rendering/partial_finder' module Hanami module View module Rendering # Rendering partial # # It's used when a template wants to render a partial. # # @api private # @since 0.1.0 # # @see Hanami::View::Rendering::Template # @see Hanami::View::Rendering::LayoutScope#render # # @example # # We have an application template (templates/application.html.erb) # # that uses the following line: # # <%= render partial: 'shared/sidebar' %> class Partial < Template protected def template PartialFinder.new(@view.class, @options).find end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems