-
Notifications
You must be signed in to change notification settings - Fork 1
About
Silverlight applications can use HTML and WPF (either through code or XAML markup) for rendering their UI; silverline integrates this capability into Rails by enabling rb/xaml partials. Ruby partials can even use rjs, so simply renaming foo.rjs to foo.rb will avoid the server-side JavaScript generation and actually run foo.rb on the client. XAML partials give you the ability to render XAML without having to bootstrap Silverlight yourself. XAML partials can also be passed through ERb for server-side or client-side processing.
Note: the following is still a work-in-progress:
silverline also lets you run pieces of your Rails application on the client, removing the need to write a separate JavaScript or Flash application simply to move functionality to the client. This is accomplished by flagging certain actions as “client”, and running the necessary pieces of your Rails appliation and Rails itself on IronRuby in the browser. You can also decorate ActiveRecord models with “acts_as_client” so any calls to ActiveRecord on the client get translated into ActiveResource calls to a restful API on the ActiveRecord model that was decorated.