module Roda::RodaPlugins::NamedTemplates::ClassMethods
def freeze
Freeze the named templates so that there can be no thread safety issues at runtime.
def freeze opts[:named_templates].freeze super end
def template(name, options=nil, &block)
Store a new template block and options for the given template name.
def template(name, options=nil, &block) opts[:named_templates][name.to_s] = [options, define_roda_method("named_templates_#{name}", 0, &block)].freeze nil end