Module: Roda::RodaPlugins::EachPart::ClassMethods

Defined in:
lib/roda/plugins/each_part.rb

Instance Method Summary collapse

Instance Method Details

#freezeObject

When freezing, optimize the part method if assuming fixed locals and caching templates.



30
31
32
33
34
35
36
# File 'lib/roda/plugins/each_part.rb', line 30

def freeze
  if render_opts[:assume_fixed_locals] && !render_opts[:check_template_mtime]
    include AssumeFixedLocalsInstanceMethods
  end

  super
end