Puncheur只读发布历史记录
Puncheur是一个Web应用程序框架。以下是其部分代码示例:
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;
@@index.tx
<h3>It Works!h2>
在控制台中,使用以下命令启动应用:
%plackup-MMyApp-e'MyApp->new->to_psgi'
Puncheur提供了一种轻量级的方式来开发Web应用,利用Perl语言的模块和框架结构,帮助快速构建灵活的Web服务。
下载地址
用户评论