perlancar > Perinci-Web-0.01 > Perinci::Web

Download:
Perinci-Web-0.01.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.01   Source  

NAME ^

Perinci::Web - Rinci/Riap-based web application framework

VERSION ^

This document describes version 0.01 of Perinci::Web (from Perl distribution Perinci-Web), released on 2015-09-04.

SYNOPSIS ^

DESCRIPTION ^

Perinci::Web is a web application framework. It will let you define routes to your functions (accessed via Riap protocol), templating, assets, etc. The spirit is much like Perinci::CmdLine: to let you write as much core functionality in normal Perl functions equipped with metadata rich enough to make converting/using them in a web application to be as easy as possible.

It is not implemented yet.

ATTRIBUTES ^

METHODS ^

$pweb = Perinci::Web->new(%opts)

Create an instance.

$pweb->app() -> CODE

Generate a PSGI application. You can then deploy your web application using any PSGI web server.

FAQ ^

How does Perinci::Web compare with other web application frameworks?

The main difference is that Perinci::Web accesses your code through Riap protocol, not directly. This means that aside from local Perl code, Perinci::Web can also provide web application interface for code in remote hosts/languages.

Aside from this difference, there are several others: XXX

How do I provide HTTP API for my web application?

This is one of the reasons why the Riap (specifically, Riap::HTTP) protocol was created. You can easily provide API access to your functions using Perinci::Access::HTTP::Server.

SEE ALSO ^

Perinci, Rinci, Riap.

Perinci::CmdLine. This is a command-line application framework and not a web application framework, but Perinci::Web is created in the same spirit as this module.

HOMEPAGE ^

Please visit the project's homepage at https://metacpan.org/release/Perinci-Web.

SOURCE ^

Source repository is at https://github.com/perlancar/perl-Perinci-Web.

BUGS ^

Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Perinci-Web

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

AUTHOR ^

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2015 by perlancar@cpan.org.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: