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/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
- # activate :livereload
40
-
41
- # Methods defined in the helpers block are available in templates
42
- # helpers do
43
- # def some_helper
44
- # "Helping"
45
- # end
46
- # end
47
-
48
1
activate :i18n , path : '/:locale'
49
2
50
3
helpers do
@@ -60,30 +13,17 @@ def t(id, replacements = {})
60
13
end
61
14
62
15
set :css_dir , 'stylesheets'
63
-
64
16
set :js_dir , 'javascripts'
65
-
66
17
set :images_dir , 'images'
67
18
68
- # Build-specific configuration
69
19
configure :build do
70
- # For example, change the Compass output style for deployment
71
20
activate :minify_css
72
-
73
- # Minify Javascript on build
74
- # activate :minify_javascript
75
-
76
- # Enable cache buster
77
21
activate :asset_hash
78
-
79
- # Use relative URLs
80
22
# activate :relative_assets
81
-
82
- # Or use a different image path
83
- # set :http_prefix, "/Content/images/"
84
23
end
85
24
86
25
activate :deploy do |deploy |
87
26
deploy . method = :git
88
27
deploy . build_before = true # default: false
89
28
end
29
+
0 commit comments