Skip to content

Commit a1a3e91

Browse files
committed
Add config
1 parent ecd3162 commit a1a3e91

File tree

1 file changed

+75
-0
lines changed

1 file changed

+75
-0
lines changed

config.rb

+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
###
2+
# Compass
3+
###
4+
5+
# Change Compass configuration
6+
# compass_config do |config|
7+
# config.output_style = :compact
8+
# end
9+
10+
###
11+
# Page options, layouts, aliases and proxies
12+
###
13+
14+
# Per-page layout changes:
15+
#
16+
# With no layout
17+
# page "/path/to/file.html", :layout => false
18+
#
19+
# With alternative layout
20+
# page "/path/to/file.html", :layout => :otherlayout
21+
#
22+
# A path which all have the same layout
23+
# with_layout :admin do
24+
# page "/admin/*"
25+
# end
26+
27+
# Proxy pages (http://middlemanapp.com/basics/dynamic-pages/)
28+
# proxy "/this-page-has-no-template.html", "/template-file.html", :locals => {
29+
# :which_fake_page => "Rendering a fake page with a local variable" }
30+
31+
###
32+
# Helpers
33+
###
34+
35+
# Automatic image dimensions on image_tag helper
36+
# activate :automatic_image_sizes
37+
38+
# Reload the browser automatically whenever files change
39+
configure :development do
40+
activate :livereload
41+
end
42+
43+
# Methods defined in the helpers block are available in templates
44+
# helpers do
45+
# def some_helper
46+
# "Helping"
47+
# end
48+
# end
49+
50+
set :css_dir, 'stylesheets'
51+
52+
set :js_dir, 'javascripts'
53+
54+
set :images_dir, 'images'
55+
56+
activate :sprockets
57+
sprockets.append_path File.join "#{root}", "bower_components"
58+
59+
# Build-specific configuration
60+
configure :build do
61+
# For example, change the Compass output style for deployment
62+
# activate :minify_css
63+
64+
# Minify Javascript on build
65+
# activate :minify_javascript
66+
67+
# Enable cache buster
68+
# activate :asset_hash
69+
70+
# Use relative URLs
71+
# activate :relative_assets
72+
73+
# Or use a different image path
74+
# set :http_prefix, "/Content/images/"
75+
end

0 commit comments

Comments
 (0)