00:03:30  * Bannerjoined
00:16:41  * prbc_quit (Remote host closed the connection)
00:20:13  * platojoined
00:26:05  * prbc_joined
00:52:11  * prbc_quit (Remote host closed the connection)
01:02:19  * Underbytequit (Quit: Linkinus - http://linkinus.com)
01:05:35  * felipefdlquit (Quit: My Mac has gone to sleep. ZZZzzz…)
01:09:34  * felipefdljoined
01:11:04  * Underbytejoined
01:20:11  * felipefdlquit (Quit: My Mac has gone to sleep. ZZZzzz…)
01:20:56  * Bannerquit (Quit: My Mac has gone to sleep. ZZZzzz…)
01:21:17  * Bannerjoined
01:35:21  * felipefdljoined
01:41:10  * Underbytequit (Ping timeout: 264 seconds)
01:45:36  * prbc_joined
01:55:30  * asher^quit (Quit: Textual IRC Client: www.textualapp.com)
01:55:51  * asher^joined
03:29:58  * prbc_quit (Quit: Leaving...)
03:50:54  * felipefdlquit (Quit: My Mac has gone to sleep. ZZZzzz…)
03:55:46  * asher^quit (Quit: Textual IRC Client: www.textualapp.com)
04:07:41  * Bannerquit (Quit: My Mac has gone to sleep. ZZZzzz…)
04:14:38  * climbupquit (Ping timeout: 272 seconds)
04:16:34  * climbupjoined
04:28:49  * Bannerjoined
04:32:40  * asher^joined
06:32:34  * asher^quit (Quit: Textual IRC Client: www.textualapp.com)
06:33:00  * asher^joined
06:49:43  * Bannerquit (Quit: My Mac has gone to sleep. ZZZzzz…)
06:51:04  * hrtcjoined
07:06:28  * asher^quit (Quit: Textual IRC Client: www.textualapp.com)
07:50:25  * hrtcquit (Ping timeout: 252 seconds)
07:50:33  * hrtcrwjoined
07:59:34  * hrtcjoined
08:01:23  * hrtcrwquit (Ping timeout: 246 seconds)
08:49:20  * hrtcquit (Ping timeout: 246 seconds)
09:02:00  * felipefdljoined
09:02:15  * felipefdlquit (Client Quit)
09:02:15  * hrtcrwjoined
09:04:16  * hrtcjoined
09:07:19  * hrtcrwquit (Ping timeout: 255 seconds)
10:08:40  * basiclaserjoined
11:48:52  * hrtcrwjoined
11:49:33  * prbc_joined
11:50:16  * hrtcquit (Ping timeout: 244 seconds)
12:01:35  * hrtcrwquit (Ping timeout: 252 seconds)
12:02:37  * hrtcrwjoined
12:15:08  * davidlngrjoined
12:50:12  * hrtcrwquit (Ping timeout: 244 seconds)
12:52:36  * hrtcrwjoined
12:59:15  * hrtcjoined
13:01:50  * hrtcrwquit (Ping timeout: 256 seconds)
13:06:13  * hrtcquit (Ping timeout: 244 seconds)
13:06:51  * hrtcjoined
13:12:50  * JimBTekjoined
13:26:19  * prbc_quit (Quit: Leaving...)
13:42:47  * prbc_joined
13:45:29  * platoquit (Ping timeout: 246 seconds)
13:58:13  * platojoined
14:51:25  * hrtcquit (Ping timeout: 264 seconds)
14:53:05  * hrtcrwjoined
14:56:38  * hrtcjoined
14:57:49  * hrtcrwquit (Ping timeout: 244 seconds)
14:59:22  * hrtcrwjoined
15:01:33  * hrtcquit (Ping timeout: 256 seconds)
15:08:34  * hrtcjoined
15:09:41  * hrtcrwquit (Ping timeout: 252 seconds)
15:15:02  * prbc_quit (Remote host closed the connection)
15:48:32  * davidlngr_joined
15:50:02  * davidlngrquit (Ping timeout: 272 seconds)
15:50:02  * davidlngr_changed nick to davidlngr
15:50:16  * prbc_joined
15:52:47  * markholmesjoined
16:57:26  * davidlngrquit (Quit: davidlngr)
16:58:49  * davidlngrjoined
16:58:53  * davidlngrquit (Client Quit)
17:14:04  * d4rklit3joined
17:29:27  * hrtcquit (Read error: Connection reset by peer)
17:29:49  * hrtcrwjoined
17:52:01  * hrtcrwquit (Ping timeout: 255 seconds)
17:52:26  * hrtcrwjoined
18:19:27  * hrtcjoined
18:22:17  * hrtcrwquit (Ping timeout: 246 seconds)
18:35:20  * hrtcquit (Ping timeout: 272 seconds)
18:48:16  * hrtcjoined
18:50:17  * prbc_quit (Remote host closed the connection)
18:54:27  * hrtcquit (Ping timeout: 244 seconds)
19:04:18  * AKPWDquit (*.net *.split)
19:04:25  * AKPWDjoined
19:26:40  * dinamic_joined
19:26:53  <dinamic_>evning folks
19:27:45  * markholmesquit (Quit: Leaving)
19:28:29  <dinamic_>i'm pretty new to express js and need some advice for building a express framework which hosts subapps which resides in nodejs modules
19:29:11  <dinamic_>i want the subapps to use jade and extend a layout in the main application (the app host)
19:29:30  <dinamic_>anyone that can point me in a direction / project that does this ?
19:34:14  <plato>dinamic_: var app2 = require('./apps/app2/server.js'); app.mount('/support', app2)
19:34:57  <plato>then in app2 you would set umm i think... `app.set('views', '../views')`
19:35:14  <plato>or maybe you can explicitly set a path to a layout template. not sure. havent used layout templates since express 2.x
19:35:21  <dinamic_>plato, my problem is that i want to bundle app2 into a nodejs module
19:35:53  <dinamic_>the way you describe works if views lies within the same nodejs module
19:35:58  <dinamic_>with som trickery
19:36:34  <plato>oh, i get it, because the path in node_modules would be different. well, i dunno, i guess you can experiment with __dirname in the module scope and see if it is the same as __dirname in the root scope
19:36:37  * climbupquit (Ping timeout: 252 seconds)
19:37:27  <plato>seems kinda fragile though, for your module to depend on a file owned by another modul;e
19:38:20  <plato>what's the reasoning behind including both view logic (rendering) and presumably code logic (deciding what to render) in the module? instead of just deciding what to render, passing it to the main app?
19:38:21  <dinamic_>is there another way to "inline" html in express than templates ?
19:39:04  * climbupjoined
19:39:19  <dinamic_>each module is a selfcontained application and both rendering and logic resides within each module
19:39:40  <plato>dinamic_: well, when you are ready to send a response, a string works: res.header('Content-type', 'text/html'); res.status(200).send(htmlString);
19:40:04  <plato>dinamic_: right, i'm asking why did you make that design decision, instead of having one app that renders stuff, and modules that execute logic to decide what to render?
19:40:32  <plato>the extreme solution might be, release your layout file as a node module, and require it multiple times from the children :)
19:41:32  <plato>I actually set up code one time that dynamically rendered. so instead of res.render('login') i would call myRender('login'); this was used to attach locals etc that I wanted all the time
19:42:02  <plato>Don't think it helps you since you need to get back up to the main app scope to call res.render
19:42:29  <dinamic_>hmm
19:43:16  <dinamic_>im not a web dev at all, relative new at nodejs/express etc..
19:44:01  <plato>I would definitely try and figure out a way to render only once at the top level and invoke your modules as an intermediate step, it's the best solution that comes to mind for me. Even if those invocations are simply returning HTML strings that you insert in the top level template.
19:44:17  <plato>I am pretty sure there is a way to get the rendered html from express without actually sending a response
19:44:25  <dinamic_>ah
19:44:28  <dinamic_>right
19:45:46  <dinamic_>that actually might be possible
19:48:45  <dinamic_>im probably complicating things for my self... thanks for the pointers ..
19:51:15  * prbcjoined
19:54:42  <plato>dinamic_: BTW if you want html content templated into jade, use != to avoid escaping it: `div#id.class!= locals.nonEscapedHtml`, and/or `div(attr!=nonEscapedHtml)`
19:55:46  * prbcquit (Ping timeout: 265 seconds)
20:47:45  * markholmesjoined
20:51:49  * prbcjoined
20:56:51  * prbcquit (Ping timeout: 256 seconds)
21:14:23  * basiclaserquit (Quit: Connection closed for inactivity)
21:52:38  * prbcjoined
21:57:11  * prbcquit (Ping timeout: 246 seconds)
22:21:22  * platoquit (Ping timeout: 264 seconds)
22:28:42  * platojoined
22:53:23  * prbcjoined
22:58:10  * prbcquit (Ping timeout: 272 seconds)
23:19:30  * Groklingquit (Ping timeout: 256 seconds)
23:52:35  * platoquit (Ping timeout: 250 seconds)
23:54:04  * prbcjoined
23:58:38  * prbcquit (Ping timeout: 246 seconds)