Skip to content

Commit

Permalink
Merge pull request padrino#911 from dcu/haml-ugly
Browse files Browse the repository at this point in the history
Use haml ugly syntax by default on production env
  • Loading branch information
DAddYE committed Aug 19, 2012
2 parents 55f54a0 + 4aa1d97 commit 712c6ee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions padrino-core/lib/padrino-core/application.rb
Expand Up @@ -181,6 +181,11 @@ def default_configuration!
set :views, Proc.new { File.join(root, "views") } set :views, Proc.new { File.join(root, "views") }
set :images_path, Proc.new { File.join(public, "images") } set :images_path, Proc.new { File.join(public, "images") }
set :protection, false set :protection, false
# haml engine
if Padrino.env == :production && defined?(Haml)
set :haml, {:ugly => true}
end

# Padrino specific # Padrino specific
set :uri_root, '/' set :uri_root, '/'
set :app_name, settings.to_s.underscore.to_sym set :app_name, settings.to_s.underscore.to_sym
Expand Down

0 comments on commit 712c6ee

Please sign in to comment.