Re: [Mojolicious] named route not working after upgrade from 7.33

2020-01-10 Thread Francesc Guasch
On 9/1/20 23:21, Dan Book wrote: Placeholder syntax was changed from parentheses to chevrons <> in 7.75. I will add this to https://github.com/mojolicious/mojo/wiki/Upgrading once I figure out when the old syntax was actually removed. I too stumbled upon this and I did this to keep the old b

[Mojolicious] mojo async/await with controller

2020-01-10 Thread 'Tobias Oetiker' via Mojolicious
I just read Joel's blog ( https://mojolicious.io/blog/2018/12/24/async-await-the-mojo-way/) about async/await support. This is wonderful. I am totally excited about this. Thank you to all involved! Obviously I had to test this right away and it works great with the Mojolicious::Lite demo shown

[Mojolicious] Re: mojo async/await with controller

2020-01-10 Thread 'Tobias Oetiker' via Mojolicious
ps. it also does not work when the method in the controller is called hello ... -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+unsubscr...@googlegro

Re: [Mojolicious] mojo async/await with controller

2020-01-10 Thread Felipe Gasper
I’m just encountering Mojo::AsyncAwait and notice that it lists Coro as a dependency. Isn’t Coro problematic in newer Perls? I thought Marc had basically written off support for 5.22 onward. -F > On Jan 10, 2020, at 8:49 AM, 'Tobias Oetiker' via Mojolicious > wrote: > > I just read Joel's

Re: [Mojolicious] mojo async/await with controller

2020-01-10 Thread 'Tobias Oetiker' via Mojolicious
it does not depend on coro anymore ... read the blog post I cited! -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+unsubscr...@googlegroups.com. To vi

Re: [Mojolicious] mojo async/await with controller

2020-01-10 Thread 'Tobias Oetiker' via Mojolicious
aargh I cited the wrong one :) way to excited just now :) https://mojolicious.io/blog/2019/12/26/announcing-core-async-await/ -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send

[Mojolicious] Re: mojo async/await with controller

2020-01-10 Thread 'Tobias Oetiker' via Mojolicious
I am answering my own questions here ... so it seems I still have to call render_later in the controller to make this work .. async sub hello ($self) { # Render template "example/welcome.html.ep" with message *$self**->render_later;* await Mojo::Promise->new(sub ($resolve,$fail) { Moj