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

IRC log for #mojo, 2016-08-14

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

All times shown according to UTC.

Time Nick Message
00:49 Vitrifur joined #mojo
00:53 meshl joined #mojo
00:57 jberger purl: forget and counting
00:57 purl jberger, I didn't have anything matching and counting
00:58 pink_mist no and needed
00:58 mauke purl: no, counting is <reply>
00:58 purl okay, mauke.
01:03 jberger Ah
01:04 jberger Oh right, when i read her factoid there was no "and"
01:17 kid51 joined #mojo
01:26 cafe joined #mojo
02:19 noganex_ joined #mojo
02:21 ayokh75 joined #mojo
03:06 cpan_mojo joined #mojo
03:27 bossert_ joined #mojo
03:28 Gedge_ joined #mojo
03:32 Sebbe joined #mojo
03:39 geheimni1` joined #mojo
03:43 go|dfish joined #mojo
03:44 jabberwok joined #mojo
03:46 marcusr joined #mojo
03:52 Trelane joined #mojo
04:57 BinGOs joined #mojo
04:57 bpmedley joined #mojo
04:57 bwf joined #mojo
04:57 nic joined #mojo
04:59 jehdin joined #mojo
04:59 ribasushi joined #mojo
04:59 mrEriksson joined #mojo
04:59 y1mmm joined #mojo
04:59 bjakubski joined #mojo
04:59 mrallen1 joined #mojo
04:59 sri joined #mojo
04:59 shoorick joined #mojo
04:59 csson joined #mojo
04:59 vytas joined #mojo
04:59 bc547 joined #mojo
04:59 jnbek joined #mojo
04:59 preaction joined #mojo
04:59 Mikey joined #mojo
04:59 cfedde joined #mojo
04:59 Kundun joined #mojo
04:59 HtbaaPi joined #mojo
04:59 plicease joined #mojo
04:59 karjala joined #mojo
04:59 cosimo joined #mojo
04:59 Ralesk joined #mojo
04:59 Caldrin joined #mojo
04:59 chansen joined #mojo
04:59 ssm joined #mojo
04:59 coolo joined #mojo
04:59 klapperl joined #mojo
04:59 crab joined #mojo
04:59 pink_mist joined #mojo
04:59 ranguard joined #mojo
04:59 saki joined #mojo
05:02 garu joined #mojo
05:07 garu_ joined #mojo
05:41 Grinnz_ joined #mojo
06:19 Vandal joined #mojo
07:19 cuechan_ joined #mojo
07:21 cuechan__ joined #mojo
07:24 dod joined #mojo
07:29 dod joined #mojo
08:06 hertzhaft joined #mojo
10:01 ayokh75 joined #mojo
10:04 mishanti1 joined #mojo
10:16 ayokh75_ joined #mojo
11:56 kid51 joined #mojo
12:22 deserted_ joined #mojo
13:06 Janos joined #mojo
13:17 cafe joined #mojo
13:18 zivester joined #mojo
13:26 dod joined #mojo
14:55 * sri yawns
15:01 AndrewIsh joined #mojo
15:13 batman joined #mojo
15:18 batman joined #mojo
15:20 batman joined #mojo
15:26 dod joined #mojo
15:29 Janos joined #mojo
16:05 dod joined #mojo
16:29 marcus-beta joined #mojo
16:34 marcus-beta left #mojo
16:35 marcus-beta joined #mojo
16:41 Craftsmanship joined #mojo
16:42 Craftsmanship TagHelpers seems odd, checked / disabled attributes need to be missing, not true/false which feels goofy, 'cuase I keep ending up with  ... $should_check->{...} ? (checked => 'checked'):(),
17:37 batman Craftsmanship: pretty sure that's how it is now: https://github.com/kraih/mojo/blob/aea16c61fd730a14053539332707ff3f770e7277/t/mojolicious/tag_helper_lite_app.t
17:38 batman Craftsmanship: can you show some code?
18:00 asarch joined #mojo
18:13 Adura joined #mojo
18:15 cuechan joined #mojo
18:46 Craftsmanship batman: those tests don't seem to cover disabled checkboxes
18:46 Craftsmanship let me double check that i'm not just making shit up though - it might be previous values or cached templtes or something
18:50 batman you did mention "checked" as well
18:51 batman but you're right about disabled...
18:51 batman sri: should "disabled" be just "disabled" instead of disabled="disabled" ?
18:52 batman seems like it from https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input
18:53 Craftsmanship #          got: ' <input disabled="0" name="lols" type="radio" value="1">
18:53 Craftsmanship so it needs to be absent ... which is why I said "goofy"
18:54 batman Craftsmanship: as a workaround, you can do check_box foo => $bool ? (disabled => "disabled") : ()
18:54 Craftsmanship they're both boolean attributes in html, but when I pass them "booleanish things" in perl, they're true
18:55 Craftsmanship I would like disabled=> somethingtrue to mean "disabled" appears, and 0/'0'/undef to mean it does not
18:56 batman i agree
18:57 Craftsmanship for now the   ? (disabled=>1):() does the trick, but Mojo seems to be about nice things, so i'm passing the feedback along
18:58 batman indeed. thank you
18:58 batman any other boolean attributes that isn't handled correctly?
19:01 pink_mist Craftsmanship++ # this always bothered me as well, but I just thought "that's the way they designed it I guess, so I'll haveto live with it" ... guess I should have complained :P
19:01 batman for the record: i could be wrong :)
19:02 Craftsmanship I mean, it's just dudes on IRC, it could mean anything
19:05 batman yeah. i'm wrong
19:06 batman Craftsmanship: it seems like you were right.
19:06 batman so to make a boolean attribute, you have to do $bool ? (disabled => undef) : ()
19:23 PryMar56 joined #mojo
19:24 marcus joined #mojo
19:40 ayokh75 joined #mojo
19:42 dod joined #mojo
19:54 cafe joined #mojo
21:04 csson joined #mojo
21:36 batman joined #mojo
21:55 cuechan joined #mojo
22:07 sri yea, should have said something when we worked on the checked/disabled stuff
22:10 cafe joined #mojo
23:02 Janos joined #mojo
23:13 shmoo joined #mojo
23:20 ayokh75 joined #mojo

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