Skip to content

Commit

Permalink
use pretty print in development mode
Browse files Browse the repository at this point in the history
  • Loading branch information
nouse committed Mar 23, 2012
1 parent ea57bf5 commit 8d7db9b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cuba/app.rb
Expand Up @@ -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")
Expand Down

0 comments on commit 8d7db9b

Please sign in to comment.