Permalink
Browse files

use pretty print in development mode

  • Loading branch information...
nouse committed Mar 23, 2012
1 parent ea57bf5 commit 8d7db9b96465f7ed33c31da90dc9ccdbf29ab7a0
Showing with 3 additions and 0 deletions.
  1. +3 −0 cuba/app.rb
View
@@ -18,6 +18,9 @@ def count
Cuba.use Rack::MethodOverride
Cuba.settings[:template_engine] = "slim"
+if ENV["RACK_ENV"] == "development"
+ Slim::Engine.set_default_options :pretty => true
+end
Cuba.define do
on get, "notes/new" do
res.write view("new")

0 comments on commit 8d7db9b

Please sign in to comment.