module Roda::RodaPlugins::RenderEach::InstanceMethods

def _optimized_render_each(enum, optimized_template, as, locals)

Use an optimized render for each value in the enum.
def _optimized_render_each(enum, optimized_template, as, locals)
  enum.map do |v|
    locals[as] = v
    send(optimized_template, locals)
  end.join
end