Guest User

Untitled

a guest
Jan 21st, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.94 KB | None | 0 0
  1. ###
  2. # Compass
  3. ###
  4.  
  5. # Susy grids in Compass
  6. # First: gem install compass-susy-plugin
  7. # require 'susy'
  8.  
  9. # Change Compass configuration
  10. # compass_config do |config|
  11. # config.output_style = :compact
  12. # end
  13.  
  14. ###
  15. # Haml
  16. ###
  17.  
  18. # CodeRay syntax highlighting in Haml
  19. # First: gem install haml-coderay
  20. # require 'haml-coderay'
  21.  
  22. # CoffeeScript filters in Haml
  23. # First: gem install coffee-filter
  24. # require 'coffee-filter'
  25.  
  26. # Automatic image dimensions on image_tag helper
  27.  
  28. activate :automatic_image_sizes
  29.  
  30. set :haml, {:attr_wrapper => '"', :layout_engine => :erb}
  31. Tilt.register Tilt::RDiscountTemplate, 'md'
  32. set :Tilt, {:RDiscountTemplate => 'md'}
  33. ###
  34. # Page command
  35. ###
  36.  
  37. # Per-page layout changes:
  38. #
  39. # With no layout
  40. # page "/path/to/file.html", :layout => false
  41. #
  42. # With alternative layout
  43. # page "/path/to/file.html", :layout => :otherlayout
  44. #
  45. # A path which all have the same layout
  46. # with_layout :admin do
  47. # page "/admin/*"
  48. # end
  49.  
  50. # Proxy (fake) files
  51. # page "/this-page-has-no-template.html", :proxy => "/template-file.html" do
  52. # @which_fake_page = "Rendering a fake page with a variable"
  53. # end
  54.  
  55. ###
  56. # Helpers
  57. ###
  58.  
  59. # Methods defined in the helpers block are available in templates
  60. # helpers do
  61. # def some_helper
  62. # "Helping"
  63. # end
  64. # end
  65.  
  66. # Change the CSS directory
  67. # set :css_dir, "alternative_css_directory"
  68.  
  69. # Change the JS directory
  70. # set :js_dir, "alternative_js_directory"
  71.  
  72. # Change the images directory
  73. # set :images_dir, "alternative_image_directory"
  74.  
  75. # Build-specific configuration
  76. configure :build do
  77. # For example, change the Compass output style for deployment
  78. # activate :minify_css
  79.  
  80. # Minify Javascript on build
  81. # activate :minify_javascript
  82.  
  83. # Enable cache buster
  84. # activate :cache_buster
  85.  
  86. # Use relative URLs
  87. # activate :relative_assets
  88.  
  89. # Compress PNGs after build
  90. # First: gem install middleman-smusher
  91. # require "middleman-smusher"
  92. # activate :smusher
  93.  
  94. # Or use a different image path
  95. # set :http_path, "/Content/images/"
  96. end
Add Comment
Please, Sign In to add comment