Method: Webby::Renderer#_render_partial
- Defined in:
- lib/webby/renderer.rb
#_render_partial(part, opts = {}) ⇒ Object
call-seq:
_render_partial( partial, :locals => {} ) => string
Render the given partial into the current page. The :locals are a hash of key / value pairs that will be set as local variables in the scope of the partial when it is rendered.
213 214 215 216 217 218 |
# File 'lib/webby/renderer.rb', line 213 def _render_partial( part, opts = {} ) _track_rendering(part.path) { _configure_locals(opts[:locals]) Filters.process(self, part, part._read) } end |