Class: Hanami::View::Rendering::Partial Private

Inherits:
Template
  • Object
show all
Defined in:
lib/hanami/view/rendering/partial.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Rendering partial

It's used when a template wants to render a partial.

Examples:

# We have an application template (templates/application.html.erb)
# that uses the following line:

<%= render partial: 'shared/sidebar' %>

See Also:

Since:

  • 0.1.0

Method Summary

Methods inherited from Template

#format, #initialize, #render

Constructor Details

This class inherits a constructor from Hanami::View::Template