Facing new challenges everyday

Taking control of Lift’s snippet rendering

September 26th, 2009

One of the features that I always pay attention in a framework is how we can control what can be rendered in a view and what not, many frameworks uses a scriplet language, some others uses a kind of template system for this purpose and a few give to the user a object oriented way to do it.

In this article I’ll show an example of how we can take the control of view rendering on lift framework with the help of snippets. With snippets you will be able to perform any server side interaction that you need, you can call a snippet by placing a tag on view code, this tag has a naming convention required to call the snippet properly, a snippet always emmit markup back to the user.
(more…)

DZoneGoogle BookmarksFacebookEvernoteLinkedInDeliciousShare

Writing MacOSX System Services with RubyCocoa

September 7th, 2009

Today I started my study about RubyCocoa and how it works, my first project was a simple system service for MacOSX Leopard where the user can type a portuguese text, select it and translate to english, the user can also type the text in english and execute the system service to translate it back to portuguese.

Here’s what I did:
(more…)

DZoneGoogle BookmarksFacebookEvernoteLinkedInDeliciousShare

Visitors Around the World

Polls

How Is My Site?

View Results

Loading ... Loading ...

Categories

Meta

Links

hosted by easy2use.net