[Mojolicious] Localization of validation messages

2018-02-18 Thread Miguel Prz
I am using Mojolicious::Validator::Validation in my Web app. I have to translate the error messages, for example "required" should be "requerido" (spanish). How can I do this? -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from

[Mojolicious] multiline %= include

2020-06-16 Thread Miguel Prz
How can I write a include statement in multiple lines? Something like this: %= include 'breadcrumb', path=> [ { one=> 'first' }, { two=> 'second' } ] Thanks! -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and sto

[Mojolicious] set full package name for controller in a route

2020-06-21 Thread Miguel Prz
I want to reuse a set of controllers of a different hierarchy (starting with MyOther) used by my application (MyApp::Controller). But when I set: $app->routes->get('/init/:id')->to(controller =>"MyOther::Controller", action=> 'init' ); I get an error in run time: (...) Controller "MyApp::MyOthe