lib/webby/renderer.rb
# call-seq:
#    _render_layout_for( resource )
#
# Render the layout for the given resource. If the resource does not have
# a layout, then this method returns immediately.
#
call-seq:
_render_layout_for( resource )

Render the layout for the given resource. If the resource does not have
a layout, then this method returns immediately.
call - seq : _render_layout_for ( resource ) Render the layout for the given resource . If the resource does not have a layout then this method returns immediately .
def _render_layout_for( res )
    return unless res.layout
    lyt = Resources.layouts.find :filename => res.layout
    return if lyt.nil?
    _track_rendering(lyt.path) {
      @content = Filters.process(
          self, lyt, ::Webby::Resources::File.read(lyt.path))
      _render_layout_for(lyt)
    }
  end
def _render_layout_for ( res ) return unless res . layout lyt = Resources . layouts . find :filename => res . layout return if lyt . nil? _track_rendering ( lyt . path ) { @content = Filters . process ( self , lyt , :: Webby :: Resources :: File . read ( lyt . path ) ) _render_layout_for ( lyt ) } end
call-seq:
_render_layout_for( resource )
call - seq : _render_layout_for ( resource )
res