Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/songmu/puncheur


https://github.com/songmu/puncheur

Last synced: 2 days ago
JSON representation

Awesome Lists containing this project

README

        

# NAME

Puncheur - a web application framework

# SYNOPSIS

package MyApp;
use parent 'Puncheur';
use Puncheur::Dispatcher::Lite;
use Data::Section::Simple ();
__PACKAGE__->setting(
template_dir => [Data::Section::Simple::get_data_section],
);
any '/' => sub {
my $c = shift;
$c->render('index.tx');
};
1;
__DATA__
@@ index.tx

It Works!

And in your console,

% plackup -MMyApp -e 'MyApp->new->to_psgi'

# DESCRIPTION

Puncheur is a web application framework.

**THE SOFTWARE IS ALPHA QUALITY. API MAY CHANGE WITHOUT NOTICE.**

# INTERFACE

## Constructor

### new

my $app = MyApp->new(%opt);

- view
- config
- dispatcher
- template\_dir
- asset\_dir
- app\_name

# LICENSE

Copyright (C) Masayuki Matsuki.

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

# AUTHOR

Masayuki Matsuki