The web in a box - a next generation web framework for the Perl programming language

IRC log for #mojo, 2015-12-28

| Channels | #mojo index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:10 melo1 joined #mojo
01:13 melo joined #mojo
02:00 asarch joined #mojo
02:30 marty_ joined #mojo
02:49 batman damaya: the tricky part with Mojo::Redis2 is what you do with it... if you only do get/set/... it should only use a single connection, but if you do subscribe/blpop/... it will create a new connection for each "thing" you do
02:50 asarch joined #mojo
02:50 batman there might be bugs of course... haven't used the module in a couple of months.
02:53 inokenty-w joined #mojo
03:15 noganex joined #mojo
03:48 ChmEarl joined #mojo
04:02 kaare joined #mojo
05:29 Zoffix joined #mojo
05:41 isomorphismes joined #mojo
06:29 Averna joined #mojo
06:57 Averna joined #mojo
07:16 Averna joined #mojo
07:20 melo1 joined #mojo
07:36 melo joined #mojo
07:43 ralesk_ joined #mojo
07:45 Trelane joined #mojo
07:54 lynnet joined #mojo
07:56 lynnet joined #mojo
07:59 mikegrb joined #mojo
08:04 haarg joined #mojo
08:19 dod joined #mojo
08:22 dod joined #mojo
08:32 damaya joined #mojo
08:38 Vandal joined #mojo
09:17 odc joined #mojo
10:03 dvinciguerra joined #mojo
10:13 marty joined #mojo
11:03 melo joined #mojo
11:29 cstamas joined #mojo
11:35 trone joined #mojo
12:05 jzawodn joined #mojo
12:11 marty_ joined #mojo
12:42 damaya joined #mojo
13:00 punter joined #mojo
13:43 damaya joined #mojo
13:52 marty joined #mojo
13:54 marty joined #mojo
14:10 lluad joined #mojo
14:10 asarch joined #mojo
14:21 jb360 joined #mojo
14:27 kaare joined #mojo
14:30 talexb_ joined #mojo
14:42 trone joined #mojo
14:45 damaya joined #mojo
14:45 Averna joined #mojo
14:47 gryphon joined #mojo
15:06 KindOne joined #mojo
15:11 brainbuz joined #mojo
15:15 hummeleBop joined #mojo
15:17 punter joined #mojo
15:48 batman joined #mojo
15:56 orev joined #mojo
16:10 sh4 joined #mojo
16:33 damaya joined #mojo
16:34 bpmedley_ joined #mojo
16:44 asarch joined #mojo
17:11 eitz joined #mojo
17:12 eitz Hello
17:13 jberger eitz: o/
17:13 eitz :D
17:15 eitz Can someone help me on this? Is there any method that I could overwrite when an error 404/500 happens? I would like to render an static html instead of the default template not_found
17:15 eitz Thanks :D
17:17 eitz I know I could create a match all route for 404 but I guess there is a better way to do it
17:18 jberger eitz: http://mojolicio.us/perldoc/Mojolicious/Guides/Rendering#Rendering-exception-and-not_found-pages
17:18 stephan48 create acustom not_found.html.ep / exception.html.ep
17:18 jberger which is what stephan4++ just said ^^
17:19 jberger stephan48++ too
17:19 stephan48 also RTM you wil learn a lot that way
17:19 stephan48 heh
17:19 nicomen the moj docs require slow reading since they are crammed with info
17:20 stephan48 just print them and sell them as a book?
17:21 preaction a book requires a narrative
17:21 nicomen just make it a collection of haikus ;D
17:21 preaction Mojo Koans?
17:21 eitz Well, thanks guys... but I already knew that. What I was trying to do is create a method to run when a 404 happens and do a $c->reply->static
17:22 stephan48 oh
17:22 stephan48 then a catchall might be my next suggestion which is pretty much not the best way i think
17:23 Grinnz_ see the last example in the above-linked section
17:23 Grinnz_ using hooks
17:23 Grinnz_ this is what i use to convert all exceptions and not founds to JSON in one of my apis
17:23 Grinnz_ JSON responses, rather
17:23 stephan48 cool idea
17:24 nicomen eitz: next step is to use the source luke. if you press view source on the doc jberger pasted, search for not_found
17:24 eitz Awesome
17:24 nicomen that's how you can add your own helper
17:24 eitz Thanks Grinnz_
17:29 eitz Sorry about not reading the docs well before asking, nicomen. shame on me :p
17:29 nicomen eitz: I do it all the time myself
17:30 nicomen You can almost not skip a single sentence without missing something important ;)
17:30 nicomen (which is good)
17:38 PryMar56 joined #mojo
17:58 cpan_mojo Mojo-UserAgent-Mockable-1.21 by POPEFELIX https://metacpan.org/release/POPEFELIX/Mojo-UserAgent-Mockable-1.21
18:04 damaya joined #mojo
18:04 sue joined #mojo
18:16 disputin joined #mojo
18:34 asarch joined #mojo
18:35 stephan48 60
18:42 dod joined #mojo
18:56 bpmedley_ joined #mojo
18:57 trone joined #mojo
19:05 damaya joined #mojo
19:58 sue_ joined #mojo
20:06 damaya joined #mojo
20:26 trone joined #mojo
20:28 jnbek joined #mojo
20:36 disputin joined #mojo
20:41 wingfold joined #mojo
20:47 zivester joined #mojo
21:26 dod joined #mojo
21:33 bpmedley_ joined #mojo
21:34 dod joined #mojo
21:53 dvinciguerra joined #mojo
21:54 damaya joined #mojo
22:46 gryphon joined #mojo
22:51 punter joined #mojo
22:55 damaya joined #mojo
23:01 PryMar56 joined #mojo
23:26 damaya joined #mojo

| Channels | #mojo index | Today | | Search | Google Search | Plain-Text | summary