module Roda::RodaPlugins::NamedTemplates::ClassMethods
Public Instance Methods
Source
# File lib/roda/plugins/named_templates.rb, line 65 def freeze opts[:named_templates].freeze super end
Freeze the named templates so that there can be no thread safety issues at runtime.
Calls superclass method
Source
# File lib/roda/plugins/named_templates.rb, line 71 def template(name, options=nil, &block) opts[:named_templates][name.to_s] = [options, define_roda_method("named_templates_#{name}", 0, &block)].freeze nil end
Store a new template block and options for the given template name.