module Roda::RodaPlugins::Part::ClassMethods

def freeze

and caching templates.
When freezing, optimize the part method if assuming fixed locals
def freeze
  if render_opts[:assume_fixed_locals] && !render_opts[:check_template_mtime]
    include AssumeFixedLocalsInstanceMethods
  end
  super
end