lib/plezi/render/render.rb
def render(base_filename, context = (Object.new.instance_eval { binding }), &block)
         ret = nil
         @render_library.each { |ext, handler| ret = handler.call("#{base_filename}.#{ext}".freeze, context, &block); return ret if ret; }
         ret
      end
def render(base_filename, context = (Object.new.instance_eval { binding }), &block)
         ret = nil
         @render_library.each { |ext, handler| ret = handler.call("#{base_filename}.#{ext}".freeze, context, &block); return ret if ret; }
         ret
      end
def render ( base_filename , context = ( Object . new . instance_eval { binding } ) , & block ) ret = nil @render_library . each { | ext , handler | ret = handler . call ( "#{base_filename}.#{ext}" . freeze , context , block ) ; return ret if ret ; } ret end
Attempts to render the requested file (i.e. `'index.html'`) using all known rendering handlers.
Attempts to render the requested file ( i . e . index . html ) using all known rendering handlers .