3 category: JavaScript libraries
6 **NB:** This is for Middleman 3, not Middleman 4+.
10 compass_config do |config|
11 config.output_style = :compact
16 # Automatic image dimensions on image_tag helper
17 activate :automatic_image_sizes
21 # Susy grids in Compass
22 # First: gem install compass-susy-plugin
25 # CodeRay syntax highlighting in Haml
26 # First: gem install haml-coderay
27 require 'haml-coderay'
29 # CoffeeScript filters in Haml
30 # First: gem install coffee-filter
31 require 'coffee-filter'
37 page "/path/to/file.html", :layout => false
39 # With alternative layout
40 page "/path/to/file.html", :layout => :otherlayout
42 # A path which all have the same layout
48 page "/this-page-has-no-template.html", :proxy => "/template-file.html" do
49 @which_fake_page = "Rendering a fake page with a variable"
62 set :css_dir, "alternative_css_directory"
63 set :js_dir, "alternative_js_directory"
64 set :images_dir, "alternative_image_directory"
66 # Build-specific configuration
70 activate :minify_javascript
73 activate :cache_buster
76 activate :relative_assets
78 # Compress PNGs after build
79 # First: gem install middleman-smusher
80 # require "middleman-smusher"
83 # Or use a different image path
84 set :http_path, "/Content/images/"