Re: [Mojolicious] newbie question about routing

2019-01-02 Thread Stefan Adams
Hi! Welcome to the group and to Mojolicious! For your specific question, see Mojolicious::Routes::Route->to and the bottom part of the Optional Placeholders

[Mojolicious] newbie question about routing

2019-01-02 Thread hwmbo . lord
Hi. I want to route a request to a controller that's dynamically constructed, base on a place holder in the url. To illustrate, I want do something like the following: use Mojo::Base 'Mojolicious'; sub startup { my $r = $self->routes; my $route = $r->get('/:customer/boxs/:id');

[Mojolicious] Newbie question

2018-04-08 Thread Jan Eskilsson
Hi All I'm not using Mojolicious::Lite but the full version and i have some trouble to understand what i do wrong. In my controller i do $self->render(mytest => 'my test'); In my template i do <%= $mytest %> And the response i get Global symbol "$mytest" requires explicit package name

[Mojolicious] Newbie question : How to run a bash script from inside a Mojolicious application ?

2017-10-25 Thread pascal marachian
Hi, I am a newbie using Mojolicious. I would want to run a bash script from inside a Mojolicious application. Perl system() or backticks didn't seem to work and I didn't find any information on the documentation. So is it possible, and, if possible, how to do it ? Thanks -- You received this