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.7 lib/onebox/template_support.rb
onebox-1.8.6 lib/onebox/template_support.rb
onebox-1.8.5 lib/onebox/template_support.rb
onebox-1.8.4 lib/onebox/template_support.rb
onebox-1.8.3 lib/onebox/template_support.rb
onebox-1.8.2 lib/onebox/template_support.rb
onebox-1.8.1 lib/onebox/template_support.rb
onebox-1.8.0 lib/onebox/template_support.rb
onebox-1.7.9 lib/onebox/template_support.rb
onebox-1.7.8 lib/onebox/template_support.rb
onebox-1.7.7 lib/onebox/template_support.rb
onebox-1.7.6 lib/onebox/template_support.rb
onebox-1.7.5 lib/onebox/template_support.rb
onebox-1.7.4 lib/onebox/template_support.rb
onebox-1.7.3 lib/onebox/template_support.rb
onebox-1.7.2 lib/onebox/template_support.rb
onebox-1.7.1 lib/onebox/template_support.rb
onebox-1.7.0 lib/onebox/template_support.rb
onebox-1.6.9 lib/onebox/template_support.rb
onebox-1.6.8 lib/onebox/template_support.rb