Hi guys,

I was just wondering whether anyone had played around with the idea of
reimplementing the frontend/views to use either backbone or
knockoutjs?

I have more experience in knockoutjs so i'll talk about it in more
detail....

knockoutjs is a javascript MVVM library which allows you to bind
elements to a view model.

e.g if you have the following view model.

var viewModel = { name: ko.observable("Me") };
ko.applyBindings(viewModel);

simply by doing the following

<input data-bind='value: name'></input>

you can bind the input field ( or div, span, etc, etc ) to a property
(whether observable or not) of your viewModel.
Change the viewModel.name property, the input field will update.
change the input field, the viewModel will update.

It has support for jQuery and other template engines, etc, etc, etc.

Have a look here
http://knockoutjs.com/examples/

-- 
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en.

Reply via email to