Sha256: 9b21095a60c49d2f19aee049edcc202749b402f9c73a29515c16f3547fbffec8
Contents?: true
Size: 1.31 KB
Versions: 1
Compression:
Stored size: 1.31 KB
Contents
class ThemeGenerator < Rails::Generator::NamedBase def manifest record do |m| # Theme directory m.directory "themes/#{file_name}" 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/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 m.directory "public/images/#{file_name}" m.file "preview.gif", "public/images/#{file_name}/preview.gif" #stylesheets m.directory "public/stylesheets/themes" m.directory "public/stylesheets/themes/#{file_name}" m.file "stylesheets/styles.css", "public/stylesheets/themes/#{file_name}/styles.css" # localization m.file "locale/en.yml", "themes/#{file_name}/locales/en.yml" m.readme "INSTALL" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
disguise-0.1.3 | generators/theme/theme_generator.rb |