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.6.7 lib/onebox/template_support.rb
onebox-1.6.6 lib/onebox/template_support.rb
onebox-1.6.5 lib/onebox/template_support.rb
onebox-1.6.4 lib/onebox/template_support.rb
onebox-1.6.3 lib/onebox/template_support.rb
onebox-1.6.2 lib/onebox/template_support.rb
onebox-1.6.1 lib/onebox/template_support.rb
onebox-1.6.0 lib/onebox/template_support.rb
onebox-1.5.65 lib/onebox/template_support.rb
onebox-1.5.64 lib/onebox/template_support.rb
onebox-1.5.63 lib/onebox/template_support.rb
onebox-1.5.62 lib/onebox/template_support.rb
onebox-1.5.61 lib/onebox/template_support.rb
onebox-1.5.60 lib/onebox/template_support.rb
onebox-1.5.50 lib/onebox/template_support.rb
onebox-1.5.49 lib/onebox/template_support.rb
onebox-1.5.48 lib/onebox/template_support.rb
onebox-1.5.47 lib/onebox/template_support.rb
onebox-1.5.45 lib/onebox/template_support.rb
onebox-1.5.44 lib/onebox/template_support.rb