Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/songmu/puncheur
https://github.com/songmu/puncheur
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/songmu/puncheur
- Owner: Songmu
- License: other
- Created: 2013-07-12T11:55:56.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-01-01T17:07:14.000Z (almost 10 years ago)
- Last Synced: 2024-10-11T21:09:29.744Z (27 days ago)
- Language: Perl
- Homepage:
- Size: 446 KB
- Stars: 4
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
- License: LICENSE
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