module Roda::RodaPlugins::RenderCoverage::ClassMethods
def create_template(opts, template_opts)
Set a compiled path on the created template, if the path for
def create_template(opts, template_opts) template = super return template if opts[:template_block] path = File.expand_path(opts[:path]) (self.opts[:render_coverage_strip_paths] || render_opts[:allowed_paths]).each do |dir| if path.start_with?(dir + '/') template.compiled_path = File.join(self.opts[:render_coverage_dir], path[dir.length+1, 10000000].gsub('/', '-')) break end end template end