In 4.50 and before, I could. With 4.51 I started to get a namespace
problem. Perhaps this is a bug.
Undefined subroutine &main::_ called at template home.html.ep from DATA
section line 2.
#!/usr/bin/perl -w
use Mojolicious::Lite;
helper localize => sub { "X" . $_[1] . "X" };
helper _ => sub { shift->localize(@_); };
get '/' => 'home';
app->start;
__DATA__
@@ home.html.ep
%= localize('FORM_TITLE')
%= _('FORM_TITLE')
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.