2009-10-22 20:25:15 -04:00
|
|
|
<% if css_dir %>set :css_dir, "<%= css_dir -%>"<% end %>
|
|
|
|
<% if js_dir %>set :js_dir, "<%= js_dir -%>"<% end %>
|
|
|
|
<% if images_dir %>set :images_dir, "<%= images_dir -%>"<% end %>
|
|
|
|
|
|
|
|
# Helpers
|
|
|
|
helpers do
|
2009-11-02 19:41:28 -05:00
|
|
|
def some_helper(*args)
|
|
|
|
"Helping"
|
|
|
|
end
|
2009-10-22 20:25:15 -04:00
|
|
|
end
|
|
|
|
|
2009-11-02 19:41:28 -05:00
|
|
|
# Automatic sitemaps
|
2009-10-22 20:25:15 -04:00
|
|
|
# enable :slickmap
|
|
|
|
|
2009-11-02 19:41:28 -05:00
|
|
|
# Automatic image dimension calculations
|
|
|
|
# enable :automatic_image_sizes
|
|
|
|
|
2009-10-22 20:25:15 -04:00
|
|
|
# Build-specific configuration
|
|
|
|
configure :build do
|
|
|
|
# For example, change the Compass output style for deployment
|
2009-11-02 19:41:28 -05:00
|
|
|
# enable :minify_css
|
|
|
|
|
|
|
|
# Minify Javascript on build
|
|
|
|
# enable :minify_javascript
|
|
|
|
|
|
|
|
# Shrink/smush PNG/JPEGs on build
|
|
|
|
# enable :smush_pngs
|
2009-10-22 20:25:15 -04:00
|
|
|
|
|
|
|
# Or use a different image path
|
|
|
|
# set :http_path, "/Content/images/"
|
|
|
|
|
|
|
|
# Disable cache buster
|
|
|
|
# disable :cache_buster
|
|
|
|
end
|