Module: Roda::RodaPlugins::Part::ClassMethods

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

Instance Method Summary collapse

Instance Method Details

#freezeObject

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



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

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

  super
end