2011-09-14 6 views

답변

7

위해 작성된 하나입니다.

app.configure "development", -> 
    app.use express.errorHandler() 
    app.locals.pretty = true 

익스프레스 3.x를 자바 스크립트

app.configure('development', function(){ 
    app.use(express.errorHandler()); 
    app.locals.pretty = true; 
}); 

에게

익스프레스 3.x를 커피 스크립트 : 특급 구성이 추가, 그것은 옥 출력을 정돈 할 것 Express 2.x CoffeeScript

app.configure "development", -> 
    app.use express.errorHandler() 
    app.set "view options", 
    pretty: true 

익스프레스 2.X 자바 스크립트

app.configure('development', function(){ 
    app.use(express.errorHandler()); 
    app.set('view options', { pretty: true }); 
}); 
+2

신난다. 시간을 절약 해 주셔서 감사합니다. 한 줄로 모두 디버그하는 것이 어렵습니다. :) – Gareth

관련 문제