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

IRC log for #mojo, 2016-01-02

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

All times shown according to UTC.

Time Nick Message
00:14 melo joined #mojo
00:44 melo joined #mojo
00:55 damaya joined #mojo
01:04 melo joined #mojo
01:04 ra1 joined #mojo
02:02 melo joined #mojo
02:09 jzawodn_ joined #mojo
02:10 damaya joined #mojo
02:45 ZoffixWin joined #mojo
02:45 melo joined #mojo
02:50 absolut_todd joined #mojo
02:51 bpmedley https://bitbucket.org/snippets/bpmedley/8KeAM <-- Looks cool.  First set of numbers is Solaris 11.3 guest and second set is running on my OS X host.
02:58 melo joined #mojo
03:05 bpmedley_ joined #mojo
03:10 noganex_ joined #mojo
03:12 melo joined #mojo
03:32 melo joined #mojo
03:58 damaya joined #mojo
04:11 kaare joined #mojo
04:17 damaya joined #mojo
04:23 melo joined #mojo
04:24 melo joined #mojo
04:40 damaya joined #mojo
04:53 damaya joined #mojo
05:26 melo joined #mojo
05:39 damaya joined #mojo
05:41 cpan_mojo Statocles-0.062 by PREACTION https://metacpan.org/release/PREACTION/Statocles-0.062
05:47 melo joined #mojo
06:15 hernan604 joined #mojo
06:20 melo joined #mojo
07:20 melo joined #mojo
07:28 sue joined #mojo
07:38 melo1 joined #mojo
07:43 hernan604 joined #mojo
08:07 absolut_todd joined #mojo
08:13 Vandal joined #mojo
08:16 sue joined #mojo
08:29 dod joined #mojo
08:29 dod joined #mojo
08:34 dod joined #mojo
09:10 trone joined #mojo
09:21 hernan604 joined #mojo
09:56 jontaylor joined #mojo
10:51 sugar joined #mojo
11:07 kes joined #mojo
11:51 hernan604 joined #mojo
11:53 osfameron interesting.  why is cpan_mojo reporting Statocles?
11:53 osfameron ah I see.  it has a dep on Mojo... how odd
11:54 osfameron ah, things like ::Plugin::LinkCheck use Mojo::DOM
11:58 damaya joined #mojo
13:50 sue joined #mojo
14:03 Vandal joined #mojo
14:14 MartinR joined #mojo
14:20 sue joined #mojo
14:20 MartinR suprisingly https://github.com/kraih/mojo/wiki#databases doesn't even mention pg
14:48 sue_ joined #mojo
14:54 punter joined #mojo
15:00 sue joined #mojo
15:03 jberger MartinR: that's the wiki, go ahead and add it
15:04 jberger We probably should do an audit of the wiki at some point
15:05 MartinR oh yes, definitely
15:15 sh4 joined #mojo
15:39 bpmedley joined #mojo
15:50 hernan604 joined #mojo
15:55 zivester joined #mojo
16:07 lluad joined #mojo
16:40 ra1 joined #mojo
17:30 hernan604 joined #mojo
17:32 PryMar56 joined #mojo
18:08 asarch joined #mojo
18:13 melo joined #mojo
18:51 melo joined #mojo
20:09 melo joined #mojo
20:16 preaction MartinR: it also uses Mojo::Template, Mojo::Util, Mojo::URL, Mojo::Server::Daemon. it's very nearly the second web framework using Mojo (the first being Mojolicious)
20:31 Kogurr joined #mojo
20:47 PryMar56 joined #mojo
21:16 melo joined #mojo
21:26 hernan604 joined #mojo
21:38 MartinR hmm, is Validator part of Mojolicious core ?
21:41 MartinR I mean in Blog example script there is _Validate method which does "$self->validation;" but there is no Validator constructor called, even Mojolicious::Validator isn't used
21:41 MartinR it's here -> https://github.com/kraih/mojo-pg/blob/master/examples/blog/lib/Blog/Controller/Posts.pm#L52
21:49 jberger MartinR: yes there is a built in parameter validation framework
21:49 jberger http://mojolicio.us/perldoc/Mojolicious/Controller#validation
22:07 MartinR mhm, ok thank you
22:10 sugar joined #mojo
22:36 hernan604 joined #mojo
22:39 henq joined #mojo
23:02 melo joined #mojo
23:06 MartinR there is one more thing, if validation fails it sets imputs to css style "input.field-with-error" but what controls it ? I can't find any procedure responsible for this ...
23:08 MartinR https://github.com/kraih/mojo-pg/blob/master/examples/blog/lib/Blog/Controller/Posts.pm#L31
23:14 meredith i believe it was integrated in Plugin::TagHelpers, sub _tag_with_error
23:16 cpan_mojo Toadfarm-0.72 by JHTHORSEN https://metacpan.org/release/JHTHORSEN/Toadfarm-0.72
23:17 MartinR meredith, but this plugin isn't used there
23:20 batman MartinR: don't you use things like %= text_field ?
23:20 meredith DefaultHelpers and TagHelpers are loaded by default, this blog example doesn't avoid them.  the input tag helpers in templates/posts/_form.html.ep are out of TagHelpers
23:21 meredith those input tag helpers are just switching from a tag(...) call to a tag_with_error(...) call internally if there is an error in the controller's validation
23:21 MartinR batman, yes text_field and text_area
23:21 henq Hello, a very Mojo 2016 to y'all ;-) Newbie question:
23:22 batman MartinR: yeah... the followup would be what meredith wrote :)
23:22 henq In a Lite app, i want the same code executed whether placeholder is empty or not
23:22 henq get '/new/:slug' => sub {   #code  }    #route does not match /new or /new/
23:22 batman henq: get "/new/:slug" => [slug => "default"], sub {};
23:22 henq I've looked in the documentation at 'Optional Placeholders', but they are another beast.  Of course I can make a separate route (get '/new' => ...)  and make the code into a subroutine, and than point both routes to that same sub, but is there a more perlish way? TIA
23:24 henq ah thx @batman ( iI thought only in routing of non-lite apps available,)
23:24 MartinR oh yes it is tag_with_error
23:24 batman henq: or it could be {slug => "default"}
23:24 MartinR meredith,batman, thank you
23:25 batman henq: yes. it's {}: https://metacpan.org/pod/distribution/Mojolicious/lib/Mojolicious/Guides/Routing.pod#Catch-all-route
23:25 preaction henq: lite and non-lite are identical except for how you access the things. instead of a Mojolicious::Routes object, you've got the "get", "head", "post", etc... functions. they both take the same arguments though
23:25 batman MartinR: you're very welcome.
23:26 henq @preaction: ok, thx.

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