Module: Onebox::TemplateSupport
Instance Method Summary collapse
Instance Method Details
#load_paths ⇒ Object
5 6 7 |
# File 'lib/onebox/template_support.rb', line 5 def load_paths Onebox..load_paths.select(&method(:template?)) end |
#template?(path) ⇒ Boolean
9 10 11 |
# File 'lib/onebox/template_support.rb', line 9 def template?(path) File.exist?(File.join(path, "#{template_name}.#{template_extension}")) end |