kage Mojolicious::Plugin::JSUrlFor::Angular;
use Mojo::Base 'Mojolicious::Plugin';
use JSON::PP;
my $json = JSON::PP->new->utf8(0)->pretty;
our $VERSION = '0.18';
sub register {
my ( $self, $a
#~ my $json_routes = $c->render_to_string( json => \%names2paths );
my $json_routes = $json->encode(\@names2paths);
$json_routes =~ s/"//g;
$json_routes =~ s/
'/"/g;
$json_routes =~ s/\[/{/g;
$json_routes =~ s/\]/}/g;
#~ utf8::decode( $json_routes );
my $js = <<"JS";
(function () {
'use strict';
/*
Маршр