2021-05-26 15:11:35 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
|
|
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
|