lib/bunto/theme_builder.rb in bunto-3.2.1 vs lib/bunto/theme_builder.rb in bunto-3.4.5
- old
+ new
@@ -1,8 +1,8 @@
class Bunto::ThemeBuilder
SCAFFOLD_DIRECTORIES = %w(
- _layouts _includes _sass
+ assets _layouts _includes _sass
).freeze
attr_reader :name, :path, :code_of_conduct
def initialize(theme_name, opts)
@@ -26,10 +26,10 @@
end
def template_file(filename)
[
root.join("theme_template", "#{filename}.erb"),
- root.join("theme_template", filename.to_s)
+ root.join("theme_template", filename.to_s),
].find(&:exist?)
end
def template(filename)
erb.render(template_file(filename).read)