Init generator on Thor

This commit is contained in:
tdreyno 2011-02-05 10:32:04 -08:00
parent c6b0723156
commit 260b7c9f1b
4 changed files with 38 additions and 45 deletions

View file

@ -20,26 +20,26 @@ helpers do
end
end
<% if css_dir %>
set :css_dir, "<%= css_dir -%>"
<% else %>
<% if options[:css_dir] != "stylesheets" -%>
set :css_dir, "<%= options[:css_dir] -%>"
<% else -%>
# Change the CSS directory
# set :css_dir, "alternative_css_directory"
<% end %>
<% end -%>
<% if js_dir %>
set :js_dir, "<%= js_dir -%>"
<% else %>
<% if options[:js_dir] != "javascripts" -%>
set :js_dir, "<%= options[:js_dir] -%>"
<% else -%>
# Change the JS directory
# set :js_dir, "alternative_js_directory"
<% end %>
<% end -%>
<% if images_dir %>
set :images_dir, "<%= images_dir -%>"
<% else %>
<% if options[:images_dir] != "images" -%>
set :images_dir, "<%= options[:images_dir] -%>"
<% else -%>
# Change the images directory
# set :images_dir, "alternative_image_directory"
<% end %>
<% end -%>
# Build-specific configuration
configure :build do