class Roda::RodaPlugins::Render::TemplateMtimeWrapper
def compiled_method_lambda(roda_class, method_name, locals_keys=EMPTY_ARRAY)
is separated into its own method so the lambda does not capture any
Return the lambda used to define the compiled template method. This
def compiled_method_lambda(roda_class, method_name, locals_keys=EMPTY_ARRAY) mod = roda_class::RodaCompiledTemplates template = self lambda do |locals, &block| template.if_modified do mod.send(:define_method, method_name, Render.tilt_template_compiled_method(template, locals_keys, roda_class)) mod.send(:private, method_name) end send(method_name, locals, &block) end end