[Mojolicious] Ask for routing

2014-02-08 Thread Денис Ильиных
error on not ? url: /user/loginform/ in 4.41 this code works my $r = $self->routes; $r->route('/user/:action/', action => qr/register|doreg|openid|reminder|callback/)->to( controller => 'user' , action => "loginform" ); #catch 1 $r->route('/user/:action/:code/', action => qr/login/)->to( contro

[Mojolicious] Re: Ask for routing

2014-02-08 Thread Денис Ильиных
Perl version old freebsd perl 5.16.2 new debian v5.14.2 суббота, 8 февраля 2014 г., 18:42:52 UTC+4 пользователь Денис Ильиных написал: > > error on not ? > > url: /user/loginform/ > > in 4.41 this code works > > my $r = $self->routes; > > $r->route('

Re: [Mojolicious] Re: Ask for routing

2014-02-08 Thread Денис Ильиных
why ? im install old version 4.41 and all works again on debian perl 5.14 2014-02-08 19:41 GMT+04:00 sri : > error on not ? >> > > not. > > -- > sebastian > > -- > You received this message because you are subscribed to the Google Groups > "Mojolicious" group. > To unsubscribe from this group an

[Mojolicious] Re: Ask for routing

2014-02-08 Thread Денис Ильиных
Thanks :) суббота, 8 февраля 2014 г. пользователь sri написал: > why ? im install old version 4.41 and all works again on debian perl 5.14 >> > > Your routes were nonsense before 4.68 and conflict with a new feature > afterwards. > > -- > sebastian > > -- > You received this message because you a

Re: [Mojolicious] Randomness in a template

2014-08-21 Thread Денис Ильиных
Because you template is cached, you need move code to controller. Morbo dosn't cache templates and this construction works. четверг, 21 августа 2014 г. пользователь Stefan Adams написал: > I have a template: > > % use List::Util 'shuffle'; > % my @roster = shuffle @$roster; > > And when using hyp

Re: [Mojolicious] How to use string as a subroutine ref in Mojo?

2014-12-12 Thread Денис Ильиных
пятница, 12 декабря 2014 г. пользователь Pavel Serikov написал: > Hi everyone, > > I need to pass as input parameter of one function name of other function > which must be executed in some cases. But cause of Mojolicious uses 'strict > refs' I have no idea how to do it :( > > Can you please advice

Re: [Mojolicious] How to use string as a subroutine ref in Mojo?

2014-12-12 Thread Денис Ильиных
http://perldoc.perl.org/strict.html Maybe no strict 'refs' before you code and strict 'refs' after пятница, 12 декабря 2014 г. пользователь Денис Ильиных написал: > > > пятница, 12 декабря 2014 г. пользователь Pavel Serikov написал: > >> Hi everyone, >

[Mojolicious] How to use multiple IP in Mojo Useragent

2015-01-27 Thread Денис Ильиных
Hello i have a multiple IP and want call website via each IP my $max_conn = 4; Mojo::IOLoop->recurring( 0 => sub { for ($active + 1 .. $max_conn) { return ($active or Mojo::IOLoop->stop) unless my $ip = shift @ips; ++$active; $ua->loc

Re: [Mojolicious] Hosting Mojolicious project in web Server

2016-02-22 Thread Денис Ильиных
Digital ocean :) понедельник, 22 февраля 2016 г. пользователь написал: > Hello everyone, i had completely developed an application in perl with > mojolicious framework. since i am new to perl and its frameworks i don't > know how to *upload the project to the server* or* hosting the project > on

[Mojolicious] Test::Mojo feature request

2016-04-21 Thread Денис Ильиных
Hello can't find in Test::Mojo something like $t = $t->element_has('div.hello', 'hello', 'Has hello'); check content by css selector. i can check only element exist or not $t = $t->element_exists('div.foo[x=y]'); $t = $t->element_exists_not('div.foo[x=y]'); -- С уважением. Ильиных Денис Прогр

Re: [Mojolicious] Test::Mojo feature request

2016-04-22 Thread Денис Ильиных
; http://mojolicious.org/perldoc/Test/Mojo#text_unlike > > cheers, > Lachlan > >> On 22 Apr 2016, at 2:46 AM, Денис Ильиных wrote: >> >> Hello >> can't find in Test::Mojo something like >> >> $t = $t->element_has('div.hello', 'hel

Re: [Mojolicious] multiline %= include

2020-06-16 Thread Денис Ильиных
<%== include 'index/footer' , logo => '', brand_text => '', brand_copy => '' %> -- С уважением. Ильиных Денис Программист Компания "GT-Shop.ru" Телефон: +7(963) 995-7616 > 16 июня 2020 г., в 20:36, Miguel Prz написал(а): > > How can I write a include statement in multiple lines

[Mojolicious] "Stranger Things" with render_to_string

2020-07-28 Thread Денис Ильиных
In verison > SRI/Mojolicious-8.23.tar.gz render_to_string stop working for me my $message = $self->render_to_string( 'mail/blank', body=> $mail->{body}, subject => $mail->{subject}, files => $files, ); script/app mail Reference is already weak at /usr/local/share/perl/5.24.1