00:25:29  * benglquit (Ping timeout: 245 seconds)
00:38:00  * bengljoined
00:53:37  * justicefriesquit (Ping timeout: 240 seconds)
00:53:53  * rickharrison_quit (Ping timeout: 246 seconds)
00:54:00  * spalgerquit (Ping timeout: 255 seconds)
00:54:25  * calvinmetcalfquit (Ping timeout: 240 seconds)
00:54:27  * lacrossequit (Ping timeout: 255 seconds)
00:54:54  * avdi_quit (Ping timeout: 255 seconds)
00:55:54  * justicefries_joined
00:56:05  * calvinmetcalfjoined
00:56:25  * avdi_joined
00:56:28  * lacrossejoined
00:56:45  * rickharrison_joined
00:56:50  * spalgerjoined
00:58:40  * jblzjoined
00:58:52  * bmacjoined
01:11:22  * rickharrison_quit (Ping timeout: 246 seconds)
01:11:23  * avdi_quit (Ping timeout: 246 seconds)
01:11:23  * lacrossequit (Ping timeout: 246 seconds)
01:11:38  * spalgerquit (Ping timeout: 246 seconds)
01:11:38  * ZonkedZebraquit (Ping timeout: 246 seconds)
01:12:25  * calvinmetcalfquit (Ping timeout: 240 seconds)
01:12:47  * justicefries_quit (Ping timeout: 246 seconds)
01:13:21  * lijnen___quit (Ping timeout: 255 seconds)
01:14:35  * calvinmetcalfjoined
01:14:51  * rickharrison_joined
01:15:31  * lacrossejoined
01:15:36  * spalgerjoined
01:16:23  * lijnen___joined
01:16:37  * justicefries_joined
01:16:39  * ZonkedZebrajoined
01:19:23  * avdi_joined
01:37:28  * jblzquit (Quit: leaving)
01:37:42  * bmacquit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
01:40:50  * navaruquit (Remote host closed the connection)
01:57:00  * ccit_quit (Write error: Connection reset by peer)
02:17:49  * navarujoined
02:37:07  * navaruquit (Remote host closed the connection)
03:04:25  * EvanCarrolljoined
03:05:41  * ccit_joined
03:10:45  * EvanCarr1lljoined
03:16:01  * jblzjoined
03:33:01  * navarujoined
03:48:05  * navaruquit (Remote host closed the connection)
03:53:35  * wilmoorejoined
03:56:01  * bmacjoined
03:58:04  * joshonthewebquit (Quit: Computer has gone to sleep.)
03:58:36  * bmac_joined
03:59:28  * bmac_quit (Client Quit)
03:59:35  * bmacquit (Read error: Connection reset by peer)
04:21:04  * jblzquit (Quit: leaving)
04:30:32  * bmacjoined
04:33:35  * EvanCarr1llquit (Ping timeout: 255 seconds)
04:33:50  * EvanCarrollquit (Ping timeout: 252 seconds)
04:37:28  * navarujoined
04:38:04  * EvanCarrolljoined
04:38:40  * EvanCarr1lljoined
04:54:11  * navaruquit (Remote host closed the connection)
04:58:55  * bmacquit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
05:08:40  * shesekquit (Ping timeout: 246 seconds)
05:19:14  * navarujoined
05:23:28  * bmacjoined
05:33:13  * EvanCarr1llquit (Ping timeout: 240 seconds)
05:34:01  * EvanCarrollquit (Ping timeout: 240 seconds)
05:35:24  * joshonthewebjoined
05:35:26  * wilmoorequit (Ping timeout: 252 seconds)
05:35:56  * navaruquit (Remote host closed the connection)
05:39:04  * wilmoorejoined
05:45:47  * ninegridquit (Read error: Operation timed out)
06:06:59  * navarujoined
06:10:22  * EvanCarrolljoined
06:10:50  * EvanCarr1lljoined
06:26:09  * navaruquit (Remote host closed the connection)
06:31:37  * bmacquit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
06:32:48  * bmacjoined
06:33:41  * bmacquit (Client Quit)
07:19:20  * navarujoined
07:28:16  * joshonthewebquit (Quit: Textual IRC Client: http://www.textualapp.com/)
07:30:34  * joshonthewebjoined
07:38:00  * navaruquit (Remote host closed the connection)
07:43:39  * L0u1sjoined
08:09:48  * bmacjoined
08:13:24  * navarujoined
08:14:10  * bmacquit (Ping timeout: 246 seconds)
08:33:53  * navaruquit (Remote host closed the connection)
08:52:21  * bmacjoined
08:56:09  * navarujoined
08:56:50  * bmacquit (Ping timeout: 255 seconds)
09:08:24  * L0u1schanged nick to L0u0s
09:11:05  * navaruquit (Remote host closed the connection)
09:12:58  * L0u0schanged nick to L0u1s
09:58:28  * navarujoined
10:02:40  * navaruquit (Ping timeout: 246 seconds)
10:03:46  * shesekjoined
10:06:26  * joshonthewebquit (Quit: Computer has gone to sleep.)
10:52:24  * joshonthewebjoined
10:58:10  * navarujoined
11:22:08  * navaruquit (Remote host closed the connection)
11:24:25  * L0u1schanged nick to L0u0s
11:31:41  * L0u0schanged nick to L0u1s
11:53:10  * navarujoined
11:57:28  * navaruquit (Ping timeout: 246 seconds)
12:09:31  * EvanCarrollquit (Ping timeout: 264 seconds)
12:09:53  * EvanCarrolljoined
12:41:50  * bmacjoined
12:42:58  * bmacquit (Client Quit)
12:54:01  * navarujoined
12:58:22  * navaruquit (Ping timeout: 246 seconds)
13:24:58  * mhernandez1joined
13:25:38  * basicdaysjoined
13:26:38  * bmacjoined
13:54:50  * navarujoined
13:59:13  * navaruquit (Ping timeout: 240 seconds)
14:34:55  * wilmoorequit (Ping timeout: 264 seconds)
14:55:33  * navarujoined
14:59:37  * navaruquit (Ping timeout: 240 seconds)
15:10:47  * wilmoorejoined
15:16:00  * wilmoore-joined
15:16:07  * wilmoorequit (Ping timeout: 264 seconds)
15:25:56  * ninegridjoined
15:33:44  * navarujoined
15:55:54  * ramitosjoined
16:16:43  * wilmoore-quit (Ping timeout: 264 seconds)
16:20:03  * wilmoorejoined
16:35:37  * basicdaysquit (Ping timeout: 240 seconds)
16:47:31  * L0u1schanged nick to L0u0s
16:49:25  * basicdaysjoined
17:40:43  * ramitosquit (Ping timeout: 264 seconds)
18:05:41  * shesekquit (Ping timeout: 246 seconds)
18:12:17  * navaruquit (Remote host closed the connection)
18:26:32  <EvanCarroll>why does pp.use(views('./views/', 'jade'));
18:26:32  <EvanCarroll>pp.use(router(app));
18:26:35  <EvanCarroll>work
18:26:41  <EvanCarroll>but if I switch it, it doesnt work.
18:27:40  <EvanCarroll>This works: app.use(views('./views/', 'jade')).use(router(app));
18:27:50  <EvanCarroll>This does not work: app.use(router(app)).use(views('./views/', 'jade'));
18:43:05  * navarujoined
18:47:26  * navaruquit (Ping timeout: 252 seconds)
18:50:22  * veetijoined
19:17:43  * navarujoined
19:20:05  * navaru_joined
19:20:11  * navaruquit (Read error: Connection reset by peer)
20:06:11  * madhumsjoined
20:06:44  * madhumspart ("Linkinus - http://linkinus.com")
20:06:47  * madhumsjoined
20:09:37  * justicefries_changed nick to justicefries
20:21:02  * navaru_quit (Remote host closed the connection)
20:21:29  * navarujoined
20:25:47  * navaruquit (Ping timeout: 255 seconds)
20:50:47  <rickharrison_>what do you mean by doesnt work
21:24:51  * basicdaysquit (Quit: I'm out)
21:38:26  * mhernandez1quit (Remote host closed the connection)
21:47:52  * bmacquit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
22:13:57  * basicdaysjoined
22:14:31  * basicdayspart
22:31:07  * madhumsquit (Ping timeout: 264 seconds)
22:36:21  * malkomalkojoined
22:45:22  <EvanCarroll>rickharrison_: I mean, switching the order, I get "Internal Server Error"
22:45:30  <EvanCarroll>rickharrison_: nothing outputted on the terminal either
22:46:06  * calvinmetcalfquit (Quit: Connection closed for inactivity)
22:46:42  <rickharrison_>So the middleware is executed in order and then back up
22:46:51  <rickharrison_>so if your routing methods need something from the views middleware
22:46:57  <rickharrison_>they wont have it because they are entered before the views are
22:47:40  <EvanCarroll>actualy that's not true I do get something on the console.
22:47:43  <EvanCarroll>App listening on port 3000
22:47:43  <EvanCarroll>TypeError: undefined is not a function at Object.<anonymous> (/home/ecarroll/code/web/thegoaldoctor.com/node/index.js:20:13) at GeneratorFunctionPrototype.next (native) at next (/home/ecarroll/code/web/thegoaldoctor.com/node/node_modules/koa/node_modules/co/index.js:77:21) at Object.<anonymous> (/home/ecarroll/code/web/thegoaldoctor.com/node/node_modules/koa/node_modules/co/index.js:50:5)
22:47:49  <EvanCarroll> at ext (/ho:me/ecarroll/code/web/thegoaldoctor.com/node/node_modules/koa/node_modules/co/index.js:93:21) at Object.<anonymous> (/home/ecarroll/code/web/thegoaldoctor.com/node/node_modules/koa/node_modules/co/index.js:50:5) at Server.<anonymous> (/home/ecarroll/code/web/thegoaldoctor.com/node/node_modules/koa/lib/application.js:103:8) at Server.EventEmitter.emit (events.js:107:17)
22:47:55  <EvanCarroll> at HTTPPrser.parserOnIncoming [a s onIncoming] (_http_server.js:504:12) at HTTPParser.parserOnHeadersComplete (_http_common.js:111:23)
22:48:39  <rickharrison_>what is views
22:48:42  <rickharrison_>co-views? koa-views?
22:48:43  * ramitosjoined
22:49:00  <EvanCarroll>koa-views
22:49:30  <EvanCarroll>should I be using co-views?
22:49:51  <rickharrison_>so i assume in one of your routing functions you have a yield this.render?
22:50:18  <EvanCarroll>yea, per the docs
22:50:25  <rickharrison_>yes so when you execute views after router
22:50:38  <rickharrison_>there is no this.render when you get to your routing function
22:52:13  <EvanCarroll>so when router(app) is called, the views get executed right then even before the chained .use(views()) is called?
22:52:27  <rickharrison_>no it sets up middleware to be called for each and every http request
22:52:34  <rickharrison_>https://twitter.com/13husro/status/446046340481417218
22:52:38  <rickharrison_>oosp sorry wrong link
22:52:41  <rickharrison_>https://github.com/queckezz/koa-views/blob/master/index.js
22:53:01  <rickharrison_>In that middleware it assigns render to the response so that you can do this.render. However, your routing function is executed before that middleware is for your request
22:53:05  <rickharrison_>therefore this.render doenst exist yet
22:54:27  <rickharrison_>https://github.com/koajs/koa/blob/master/docs/guide.md
22:54:33  <rickharrison_>Look at the gif on that page to see howt he middleware is executed
22:54:54  <rickharrison_>In general, unless you really understand the stack of how you want your middleware to be executed, you probably want the router to be the last use statement
23:05:03  * malkomalkoquit
23:17:19  * mattrw89joined
23:18:15  <mattrw89>Hey koajs -- Hope everyone is having a good night. I'm looking for an SQL builder to use with Koa. Any suggestions out there? I need postgres support.
23:33:41  * bmacjoined
23:36:00  * bmac_joined
23:38:10  * bmacquit (Ping timeout: 246 seconds)