MVC-Neaf

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

    - REF Replace JSON dependency with JSON::MaybeXS
    - REF Replace concatenation with md5 in req->id generator (todo SHA3)
    - DOC Improve Neaf documentation NOCODE
    - BUG Multiple bugs fixed, new ones added

0.1901  Tue Nov 28 2017
    - BUG Fix local $SIG{__WARN__} in BEGIN section

0.19    Fri Nov 24 2017
    - CLI Add --listen option to CLI interface
    - API Add exp. path_info_split method to fetch regex capture groups
    - API BREAK default error = json + logged err_id
    - API BREAK Deprecate foo => bar => baz => sub {}-style paths in route()
    - API BREAK Remove CGI driver for good, remove CGI.pm dependency
    - BUG Add hack to prevent tests from failing on older perls

0.18    Mon Nov 20 2017
    - TST Rework examples to use the new declarative get+post syntax
    - API BREAK Use -view=>JS by default; switch to TT & issue warning if -template seen
    - API Add experimental predefined param_regex to route
    - TPL Add non-hash response support to JS view via -serial return key

lib/MVC/Neaf/Route/Main.pm  view on Meta::CPAN

        $content = $$file;
    } else {
        $self->my_croak( "Argument must be a scalar, a scalar ref, or a file descriptor" );
    };

    defined $content
        or $self->my_croak( "Failed load content" );

    # TODO 0.40 The regex should be: ^@@\s+(/\S+(?:\s+\w+=\S+)*)\s*$
    #     but we must deprecate '[TT] foo.html' first
    my @parts = split m{^@@\s+(\S.*?)\s*$}m, $content, -1;
    shift @parts;
    confess "NEAF load_resources failed unexpectedly, file a bug in MVC::Neaf"
        if @parts % 2;

    my %templates;
    my %static;
    while (@parts) {
        # parse pseudo-file
        my $spec = shift @parts;
        my $content = shift @parts;



( run in 0.874 second using v1.01-cache-2.11-cpan-71847e10f99 )