Nexus Weblogging
ChinaonRails
You are here ChinaonRails > Ruby on Rails > > 插件Cells:把模块化带入Rails 应用中,组件导向轻量级的开发

bd7lx


56.126%

disconnected
登录后回复主题 | 跳到回复(12)

插件Cells:把模块化带入Rails 应用中,组件导向轻量级的开发

... by bd7lx ... 31 月 2 天前 ... 1117 次点击

http://rubyforge.org/projects/cells/



http://cells.rubyforge.org/community.html

"Bringing modularity to your Rails app."

Rails Cells

这回可以把控制器和视图都可以封装成“轻型细胞”大胆地render_component仿佛就像partial rendering不畏惧耦合的过紧密造成route的负担

除了解除视图对控制器耦合,被封装的cell还有业务逻辑,楞把logic从控制器里拖出来放在灵活的构件里让任何视图或控制器来吊用

倒退吗?

传统思维的Hack Back

Cells brings components back to Rails, following a rich tradition lead by Apple's WebObjects and Smalltalk's Seaside.

要Rails的牌坊,也要页面导向Rending,Ajax还有构件开发的共荣思维方式

Now you can have the best of both page-oriented rendering, Ajax, and component-oriented abstractions with the beauty of Ruby and the power of Rails.


1 - 2008-2-15 5:41
cnruby 慕尼黑
相关链接:
http://kurt.karmalab.org/articles/2008/02/13/bringing-components-back-into-rails-with-cells
2 - 2008-2-15 5:46
cnruby 慕尼黑
相关讨论:
http://rubyforge.org/pipermail/cells-talk/
4 - 2008-5-14 8:54
bd7lx 楼主 深圳
infoQ也看上了

轻型控制器带上视图

http://www.infoq.com/news/2008/05/cells-components-for-rails
5 - 2008-5-14 17:33
IceskYsl 深圳
http://iceskysl.1sters.com/?action=show&id=258
6 - 2009-3-25 10:46
bd7lx 楼主 深圳
http://www.infoq.com/news/2009/03/wee

Wee: Continuation Based Ruby Web Framework

跟seaside 学步,wee 新框架也有Reusable components

http://github.com/mneumann/wee/tree/master
7 - 2009-5-15 10:33
bd7lx 楼主 深圳
http://blog.iamnolegend.com/continuations-and-ruby-47.html

温馨提示,1.9里加上

require 'continuation'
8 - 10-10 13:46
bd7lx 楼主 深圳
9 - 10-19 10:32
bd7lx 楼主 深圳
http://www.infoq.com/cn/news/2009/10/rails-cells

Cells"将使得面向组件的开发惠及Ruby on Rails Web应用平台“,使得你能够创建独立并且可以重用的组件,这些组件是自包含的,并且能够和应用程序中的其他Cells组合在一起或者被其他Cells重用。

构建在Cells之上的Apotomo对Cells进行了改进,使其成为一个完全状态化的组件,能够提供和广为人知的GUI widget同级的抽象能力,即“Apotomo使用能够自升级的事件驱动的widget扩展了Rails的功能”。所以,使用Apotomo的开发者能够利用现有的JavaScript UI库,例如YUI,而不需要编写JavaScript代码或者关心底层AJAX调用。Apotomo widget能够形成事件链,使得widget能够独立于其他并且易于重用。
10 - 4-14 9:16
bd7lx 楼主 深圳
http://github.com/isy-pitr/isy-playground

http://isyruby.wordpress.com/

Isy – ruby component state-full web framework.
12 - 4-18 10:50
bd7lx 楼主 深圳
http://isyruby.wordpress.com/2010/04/12/isy-html-with-erector/

Isy – HTML with Erector
There are a lot of possibilities how to generate HTML with Ruby: ERB, Erubis, Haml, Markaby, Erector, etc.

http://chinaonrails.com/topic/view/618.html
看完之后有话想说?那就帮楼主加盖一层吧!

在回复之前你需要先进行登录
电子邮件或昵称
密码
当前热门主题  野心勃勃的用“饭桶”来部署git ... 34 篇回复
© 2006-2010 A Jesse Cai Production   -   About   -   京ICP备07020911号
a site powered by Project Babel