开发者

Rails plugin to separate markup and logic, like Wicket or Effigy

I need a Rails plugin that gives you the chance to purely separate HTML and any logic in your views. Views should be classes reading the separate markup and replacing it with dynamic content where needed. Basically Effigy from github does this.

I am looking for something like Wicket, but on the Rails base.

I can remember seeing a plugin from a Rails enterprise开发者_如何学编程 that does this. In my memory, it was better and seemed more mature than Effigy. But I forgot its name. It was something like "luxurious" or "delicious"; does anyone know what I am talking about? The plugin was created in a US Rails enterprise.

Any other alternatives would be much appreciated.

I feel that Effigy is almost OK, but it's hard to find tutorials or people using it properly, so I question its the maturity. Well, if nothing comes up, I will go ahead with Effigy for now.


All right guys, I think I finally found what I was talking about. The plugin is called "Erector"

The thing that I like about it, is that views are finally plain ruby objects and you can do everything you can usually do in ruby. I found couple of blogposts: https://github.com/erector/erector

Why I always liked this idea you can easily see in this blogpost I want to thank the creators for this.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜