[Mojolicious] Re: mojolicious template if statement

2018-03-06 Thread Andrew Morgan
Argh..lol, thank you very much..rookie mistake. Thank you On Monday, 5 March 2018 22:51:23 UTC-5, Andrew Morgan wrote: > > Hello All, > > I have the below code, but the if statement is not functioning.No matter > what my selection is in the browser it returns "you entered correct car > " > >

[Mojolicious] Why it works with blocking code?

2018-03-06 Thread Michael Fung
Hi, I need to use MongoDB(I know it is not recommended here). I used the official MongoDB driver like this: startup { ... $app->helper( 'sem' => sub { state $sem = Coro::Semaphore->new(5); }); my @mongo_clients = (); $app->defaults({ mongo_clients => \@mongo_clients });