Sha256: 793f9b9f85d7722e061da9d41500a4ba690aa682744953bf90592c331a51642c

Contents?: true

Size: 246 Bytes

Versions: 144

Compression:

Stored size: 246 Bytes

Contents

module Onebox
  module TemplateSupport
    def load_paths
      Onebox.options.load_paths.select(&method(:template?))
    end

    def template?(path)
      File.exist?(File.join(path, "#{template_name}.#{template_extension}"))
    end
  end
end

Version data entries

144 entries across 144 versions & 1 rubygems

Version Path
onebox-1.8.89 lib/onebox/template_support.rb
onebox-1.8.88 lib/onebox/template_support.rb
onebox-1.8.87 lib/onebox/template_support.rb
onebox-1.8.86 lib/onebox/template_support.rb
onebox-1.8.85 lib/onebox/template_support.rb
onebox-1.8.84 lib/onebox/template_support.rb
onebox-1.8.83 lib/onebox/template_support.rb
onebox-1.8.82 lib/onebox/template_support.rb
onebox-1.8.81 lib/onebox/template_support.rb
onebox-1.8.80 lib/onebox/template_support.rb
onebox-1.8.79 lib/onebox/template_support.rb
onebox-1.8.78 lib/onebox/template_support.rb
onebox-1.8.77 lib/onebox/template_support.rb
onebox-1.8.76 lib/onebox/template_support.rb
onebox-1.8.75 lib/onebox/template_support.rb
onebox-1.8.74 lib/onebox/template_support.rb
onebox-1.8.73 lib/onebox/template_support.rb
onebox-1.8.72 lib/onebox/template_support.rb
onebox-1.8.71 lib/onebox/template_support.rb
onebox-1.8.70 lib/onebox/template_support.rb