Time |
Nick |
Message |
00:09 |
|
jzawodn joined #mojo |
00:13 |
|
Molaf__ joined #mojo |
01:10 |
|
Mike-PerlRecruiter_ joined #mojo |
01:36 |
GabrielVieira |
When using hypnotoad $FindBin::Bin returns me the app.pl directory, but when using morbo returns me perlbrew bin dir. Should I expect this behavior? |
01:53 |
|
kitt_vl joined #mojo |
02:06 |
jberger |
GabrielVieira, what version of mojolicious are you using? My guess is its an old-ish one |
02:07 |
jberger |
I'm guessing less than 3.40 |
02:08 |
jberger |
https://github.com/kraih/mojo/blob/master/Changes#L314 |
02:09 |
|
basic6_ joined #mojo |
02:21 |
|
rhaen_fork_ joined #mojo |
02:42 |
GabrielVieira |
jberger: Mojolicious (3.31, Rainbow) |
02:56 |
jberger |
then yes, to fix the problem you should upgrade mojolicious, the problem is fixed in 3.40, the current version is 3.82 |
03:22 |
hesperaux |
hi guys. I'm using JSON->encode_json(\@array) and it is telling me it expected an array ref. Am I stupid? |
03:24 |
jberger |
hesperaux, did you know that Mojolicious comes with its own JSON parser? |
03:24 |
jberger |
Mojo::JSON? |
03:25 |
hesperaux |
yes. I forgot to add Mojo::. Thanks for that |
03:25 |
jberger |
k |
03:25 |
jberger |
then you don't need the _json |
03:25 |
jberger |
Mojo::JSON->new->encode(\@array) |
03:26 |
jberger |
or |
03:26 |
jberger |
use Mojo::JSON 'j'; |
03:26 |
jberger |
j(\@array) |
03:26 |
hesperaux |
fancy |
03:26 |
hesperaux |
thanks, that works; although i still ahve a problem |
03:26 |
jberger |
thats rather recent |
03:26 |
hesperaux |
how can I prevent mojo from escaping quotes and stuff? |
03:26 |
jberger |
? |
03:27 |
hesperaux |
["One-sided Migraine","Joint Pain","Migraine"....etc |
03:27 |
hesperaux |
i'd like this to be parseable by javascript when printed to a <script> from the stash |
03:27 |
jberger |
oh, this is in a template? |
03:27 |
hesperaux |
but the <script> is receiving all the HTML escape codes instead of actual ' |
03:27 |
hesperaux |
yes |
03:28 |
jberger |
use two = to prevent escaping |
03:28 |
jberger |
%== $data |
03:28 |
hesperaux |
;O |
03:28 |
hesperaux |
i love you right now |
03:28 |
hesperaux |
haha |
03:28 |
jberger |
or <%== $data %> |
03:28 |
* jberger |
bats eyes |
03:34 |
hesperaux |
beautiful. thanks again. |
03:38 |
|
TitanOfOld joined #mojo |
05:29 |
tempire |
<3 amazon s3 |
05:37 |
|
asarch joined #mojo |
06:10 |
|
venomo joined #mojo |
06:23 |
|
hesperaux_ joined #mojo |
06:29 |
|
jwang joined #mojo |
06:51 |
|
basic6 joined #mojo |
07:40 |
|
rem_lex|pivo joined #mojo |
07:43 |
|
Vandal joined #mojo |
07:44 |
|
rhaen_fork joined #mojo |
07:46 |
|
dotan joined #mojo |
08:22 |
|
d4rkie joined #mojo |
08:53 |
Mad_Dud |
hi guys |
08:54 |
Mad_Dud |
is it possible for plugin tagHelpers to make select_field have automatically selected some value based on some variable? |
08:54 |
Mad_Dud |
http://search.cpan.org/~sri/Mojolicious-3.82/lib/Mojolicious/Plugin/TagHelpers.pm#select_field |
08:55 |
inokenty |
Mad_Dud: Yes, it takes data from $self->param |
08:55 |
Mad_Dud |
oh. nice |
09:01 |
|
ObseLeTe joined #mojo |
09:01 |
|
ObseLeTe joined #mojo |
09:12 |
|
yakudza joined #mojo |
09:53 |
|
rhaen_fork joined #mojo |
09:55 |
|
rhaen_fork joined #mojo |
10:08 |
sri |
<%== $json %> only works for ascii characters, templates work with characters, so you might have to decode the JSON again |
10:26 |
|
baton8 joined #mojo |
10:27 |
|
hesperaux__ joined #mojo |
12:14 |
|
vervain joined #mojo |
12:14 |
|
kitt_vl joined #mojo |
12:18 |
|
ka2u joined #mojo |
12:24 |
|
dod joined #mojo |
12:27 |
|
dod joined #mojo |
12:33 |
|
jontaylor joined #mojo |
13:04 |
|
TitanOfOld joined #mojo |
13:04 |
|
dotan joined #mojo |
13:04 |
|
GabrielVieira joined #mojo |
13:07 |
|
vervain joined #mojo |
13:07 |
|
ka2u joined #mojo |
13:07 |
|
kitt_vl joined #mojo |
13:08 |
|
Mike-PerlRecruiter_ joined #mojo |
13:10 |
|
vervain joined #mojo |
13:13 |
|
vervain joined #mojo |
13:23 |
|
ObseLeTe joined #mojo |
13:30 |
|
ka2u joined #mojo |
13:49 |
|
jontaylor joined #mojo |
13:55 |
|
jontaylor joined #mojo |
14:22 |
|
jontaylor joined #mojo |
14:35 |
|
venomo joined #mojo |
14:36 |
|
ka2u joined #mojo |
14:43 |
|
nicomen joined #mojo |
15:01 |
|
rhaen_fork joined #mojo |
15:17 |
|
Britzel joined #mojo |
15:26 |
|
Miked joined #mojo |
15:27 |
|
good_news_everyone joined #mojo |
15:27 |
good_news_everyone |
[mojo] kraih tagged v3.83 at c0f9e3f: http://git.io/tRlIHw |
15:27 |
|
good_news_everyone left #mojo |
15:42 |
|
gryphon joined #mojo |
15:55 |
|
d4rkie joined #mojo |
15:56 |
GabrielVieira |
jberger: thanks :) |
16:01 |
|
ka2u joined #mojo |
16:04 |
|
jberger_ joined #mojo |
16:15 |
|
jontaylor joined #mojo |
16:55 |
|
rhaen_fork joined #mojo |
17:19 |
|
venomo joined #mojo |
17:22 |
|
asarch joined #mojo |
17:42 |
|
ObseLeTe joined #mojo |
18:42 |
* sri |
wonders what's up with the chinese ssl mitm attack on github |
18:51 |
|
rhaen_fork joined #mojo |
18:52 |
|
vervain joined #mojo |
18:55 |
jberger_ |
sri, not much one can do from a country that isn't free |
18:55 |
jberger_ |
my sister was living in Cairo when Egypt turned off the internet |
18:56 |
jberger |
hmmm, I guess my internet had a problem too! I got to be jberger_ |
18:57 |
|
vervain joined #mojo |
19:21 |
|
mattastrophe joined #mojo |
19:54 |
|
aryeh joined #mojo |
19:55 |
aryeh |
Hi everyone. |
19:56 |
aryeh |
Is there an easy way to map nested routes directly to class modules? so /admin/users/list goes to Admin::Users->list ? |
19:58 |
aryeh |
or is there a way to tell the route that for each nested level it should decent into a class accordingly? so everything under /admin would be /admin/:controller/:action found as Admin::[controller]::action |
20:01 |
|
mattastrophe joined #mojo |
20:17 |
aryeh |
ah, found it! namespace=>'MyApp::Admin' |
20:22 |
|
Mad_Dud joined #mojo |
20:40 |
|
rhaen_fork joined #mojo |
20:56 |
|
zivester joined #mojo |
21:08 |
|
perlite joined #mojo |
21:11 |
|
mattastrophe joined #mojo |
21:12 |
|
mugenken joined #mojo |
21:16 |
|
bluescreen joined #mojo |
21:55 |
|
lammel2 joined #mojo |
22:02 |
|
chatzilla joined #mojo |
22:03 |
chatzilla |
Hey guys, anyone used "layout" helper with Template Toolkit? with [% c.layout('some-layout') %] wrapping itself seems to be working, but [% content %] variable is empty |
22:04 |
|
davido joined #mojo |
22:36 |
chatzilla |
[% c.content %] helped. =) its also a helper. heh |
23:41 |
|
anaio joined #mojo |
23:43 |
nicomen |
hm, not sure I like the suggested way of packaging templats and public dir in the docs |
23:45 |
nicomen |
would you accept a File::Sharedir based example too? |