generators/theme/theme_generator.rb in disguise-0.1.1 vs generators/theme/theme_generator.rb in disguise-0.1.2
- old
+ new
@@ -2,22 +2,19 @@
def manifest
record do |m|
# Theme directory
m.directory "themes/#{file_name}"
- m.directory "themes/#{file_name}/content"
- m.directory "themes/#{file_name}/content/pages"
- m.directory "themes/#{file_name}/content/protected-pages"
m.directory "themes/#{file_name}/locale"
m.directory "themes/#{file_name}/views"
m.directory "themes/#{file_name}/views/layouts"
+ m.directory "themes/#{file_name}/views/layouts/global"
# basic theme files
- m.file "views/_head.html.erb", "themes/#{file_name}/views/layouts/_head.html.erb"
- m.file "views/_header.html.erb", "themes/#{file_name}/views/layouts/_header.html.erb"
- m.file "views/_footer.html.erb", "themes/#{file_name}/views/layouts/_footer.html.erb"
- m.file "views/application.html.erb", "themes/#{file_name}/views/layouts/application.html.erb"
- m.file "views/home.html.erb", "themes/#{file_name}/views/layouts/home.html.erb"
+ m.file "views/_head.html.erb", "themes/#{file_name}/views/layouts/global/_head.html.erb"
+ m.file "views/_header.html.erb", "themes/#{file_name}/views/layouts/global/_header.html.erb"
+ m.file "views/_footer.html.erb", "themes/#{file_name}/views/layouts/global/_footer.html.erb"
+ m.file "views/default.html.erb", "themes/#{file_name}/views/layouts/default.html.erb"
# description
m.file "description.txt", "themes/#{file_name}/description.txt"
# images