Permalink
Browse files

Merge pull request #911 from dcu/haml-ugly

Use haml ugly syntax by default on production env
  • Loading branch information...
2 parents 55f54a0 + 4aa1d97 commit 712c6ee59847157f7d8360e69de8a76b749a316a @DAddYE DAddYE committed Aug 19, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 padrino-core/lib/padrino-core/application.rb
@@ -181,6 +181,11 @@ def default_configuration!
set :views, Proc.new { File.join(root, "views") }
set :images_path, Proc.new { File.join(public, "images") }
set :protection, false
+ # haml engine
+ if Padrino.env == :production && defined?(Haml)
+ set :haml, {:ugly => true}
+ end
+
# Padrino specific
set :uri_root, '/'
set :app_name, settings.to_s.underscore.to_sym

0 comments on commit 712c6ee

Please sign in to comment.