module Roda::RodaPlugins::PrecompileTemplates

def self.load_dependencies(app, opts=OPTS)

Default to sorting the locals if the Tilt version is greater than 2.0.1.
Load the render plugin as precompile_templates depends on it.
def self.load_dependencies(app, opts=OPTS)
  app.plugin :render
  app.opts[:precompile_templates_sort] = opts.fetch(:sort_locals, Tilt::VERSION > '2.0.1')
end