Group
Extension

Matches 1

Mojolicious-Plugin-JSUrlFor ( K/KO/KOORCHIK/Mojolicious-Plugin-JSUrlFor-0.17.tar.gz, KOORCHIK, 2015; MetaCPAN )
Mojolicious-Plugin-JSUrlFor/lib/Mojolicious/Plugin/JSUrlFor.pm ( view source; MetaCPAN )
}

            my $json_routes = $c->render_to_string( json => \%names2paths );
            utf8::decode( $json_routes );

            my $js = <<"JS";
var mojolicious_routes = $json_routes;
function 

  # In your layout template
  <head>
  <%= js_url_for%>
  </head>

  # In your javascript
  $.getJSON( url_for( 'messages_show', {message_id: 123} ), params, function() { ... } )


  # Instead of hel

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.