免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 4601 | 回复: 10
打印 上一主题 下一主题

Perl web framework Mojolicious [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-06-24 12:45 |只看该作者 |倒序浏览
I am learning it now, anybody has any expeirences of this perl web framework. Can you share your thoughts and comments aout it.

Thanks.

论坛徽章:
0
2 [报告]
发表于 2011-06-24 12:48 |只看该作者
好好的中文不会讲嘛?

论坛徽章:
46
15-16赛季CBA联赛之四川
日期:2018-03-27 11:59:132015年亚洲杯之沙特阿拉伯
日期:2015-04-11 17:31:45天蝎座
日期:2015-03-25 16:56:49双鱼座
日期:2015-03-25 16:56:30摩羯座
日期:2015-03-25 16:56:09巳蛇
日期:2015-03-25 16:55:30卯兔
日期:2015-03-25 16:54:29子鼠
日期:2015-03-25 16:53:59申猴
日期:2015-03-25 16:53:29寅虎
日期:2015-03-25 16:52:29羊年新春福章
日期:2015-03-25 16:51:212015亚冠之布里斯班狮吼
日期:2015-07-13 10:44:56
3 [报告]
发表于 2011-06-24 13:01 |只看该作者
顶一下

论坛徽章:
0
4 [报告]
发表于 2011-06-25 00:47 |只看该作者
回复 2# 2gua


    My computer has no Chinese language input, please ignore my post if it bothers you.

Thanks

论坛徽章:
0
5 [报告]
发表于 2011-06-25 01:38 |只看该作者
Dancer is a little framework and it is very good framework
my group of qq:81087030

论坛徽章:
0
6 [报告]
发表于 2011-06-25 02:13 |只看该作者
本帖最后由 albertd 于 2011-06-25 02:27 编辑

http://code.google.com/p/catz/wiki/FrameworkComparison

Catalyst

Very flexible: Moose can be used to extend controllers, sessions can be handled every way you like, choose almost any templating system and there already a CPAN module to do that
Mature
The most documented Perl MVC framework
Inintial startup on a new project takes some time
Heavyweight with lots of dependencies
Tons of plugins
Gigantic user community
Routing rules are spread to controllers which I don't like
Feature-list is long. What I really like is a natural automatic loading of Models and to access them without a hassle.
Very hard to get the idea behind Chained actions: there are various simple examples but I still don't get it how to use them in my cases
Restart is a real restart: slower than with Mojolicious reload but appears to work in every case

Dancer

Sits nicely between the component-based Catalyst and web-in-a-box Mojolicious
Weights much less than Catalyst
Very easy to start work with
DSL features are a two-sided sword - depends on what you like - I prefer pure Perl against DSL
Has stabilized to the level that can be used in production
Active user community

Mojolicious

Very easy to start work with due to the web-in-a-box design
Excellent dispatcher: route definitions are in one place, they are compact and the routing syntax is very expressive
Lightweight
Has stabilized to the level that can be used in production
Active user community
Enough documentation at least for a user on my level
Nice integrated template engine allowing embedded Perl
Reload is very fast but is not as bullet-proof as Catalyst restart
Development is driven by one main developer - this is both a pro and a con
Lots of nice features to speed up the development and to make developer's life easier (like auto-localization of stash variables in templates)
Simplicity has been taken to extremes: almost everything is accessed thru $self, Catalyst separation between $self and $c might be clearer
Some issues rise due to the fact that when you are running router or before/after hook, you are not running a controller and so $self doesn't provide all the services available for controllers
API changes break things ($self->render(status => 404) became useless and had to be globally replaced with $self->render_not_found)

论坛徽章:
0
7 [报告]
发表于 2011-06-25 08:11 |只看该作者
回复 4# albertd


    Thanks.

论坛徽章:
0
8 [报告]
发表于 2011-06-25 23:12 |只看该作者
Mojolicious::Lite  很不错

论坛徽章:
0
9 [报告]
发表于 2011-06-26 08:58 |只看该作者
http://mojolicio.us/perldoc
跟所有成功的perl项目一样,mojo的文档很好很全。
这个MVC有点像sinatra和dancer,但功能更丰富,直接支持多种web service接口。
其template系统看起来不如TT。

论坛徽章:
0
10 [报告]
发表于 2011-06-26 10:18 |只看该作者
在这个贴子里发言的都是高手,我来冒充一个。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP