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.48 lib/onebox/template_support.rb
onebox-1.8.47 lib/onebox/template_support.rb
onebox-1.8.46 lib/onebox/template_support.rb
onebox-1.8.45 lib/onebox/template_support.rb
onebox-1.8.44 lib/onebox/template_support.rb
onebox-1.8.43 lib/onebox/template_support.rb
onebox-1.8.42 lib/onebox/template_support.rb
onebox-1.8.41 lib/onebox/template_support.rb
onebox-1.8.40 lib/onebox/template_support.rb
onebox-1.8.39 lib/onebox/template_support.rb
onebox-1.8.38 lib/onebox/template_support.rb
onebox-1.8.36 lib/onebox/template_support.rb
onebox-1.8.35 lib/onebox/template_support.rb
onebox-1.8.34 lib/onebox/template_support.rb
onebox-1.8.33 lib/onebox/template_support.rb
onebox-1.8.32 lib/onebox/template_support.rb
onebox-1.8.31 lib/onebox/template_support.rb
onebox-1.8.30 lib/onebox/template_support.rb
onebox-1.8.29 lib/onebox/template_support.rb
onebox-1.8.28 lib/onebox/template_support.rb