Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/casualjim/ironnails
An experiment for WPF with IronRuby as an MVC framework
https://github.com/casualjim/ironnails
Last synced: 23 days ago
JSON representation
An experiment for WPF with IronRuby as an MVC framework
- Host: GitHub
- URL: https://github.com/casualjim/ironnails
- Owner: casualjim
- Created: 2010-10-27T10:23:33.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2010-10-27T10:24:01.000Z (about 14 years ago)
- Last Synced: 2024-10-04T19:43:39.290Z (about 1 month ago)
- Language: Ruby
- Homepage: http://github.com/ironnails/ironnails
- Size: 3.71 MB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rdoc
Awesome Lists containing this project
README
IronNails
=========IronNails is a framework inspired by the Rails and rucola frameworks. It offers a rails-like way of developing applications with IronRuby and Windows Presentation Foundation (WPF).
This framework uses the pattern Model - ViewModel - View - Controller (M-VM-V-C). It should eventually be able to run on both WPF and Silverlight but currently only works with WPF.
The idea is that the views can be created using a design tool like Blend for example and just save that xaml as is. The designer should not need to use anything else than drag and drop to create a GUI design. The behaviors are then added to the view by using predefined behaviors in the framework or by defining your own behavior.
The framework then generates a proxy for the view which will be used to transparently wire up the commands in the behaviors to controller actions.In controllers, viewmodels, models and view proxies you now have the ability to log things in the same way Rails does.
You can run the application by giving the command rake run inside the application directory
You are now able to write the following code for a controller:
# file name: demo_controller.rb
class DemoController < IronNails::Controller::Base
view_object :status_bar_message, "The status bar message"
view_action :change_message
def change_message
@status_bar_message = "#@status_bar_message appended"
end
end# file name: demo.xaml
If you want to run the project:
update IronRuby to the latest revisionir -S gem install ironnails
ir -S ironnails my_cool_application
cd my_cool_application
rakeall help is welcome: [email protected]
Help is wanted for implementing the following items a.o.
* RSpec stories
* Predefined behaviors
* Better xaml integration
* support for multiple views tied to a controller
* Create a host project in which is an application that hosts the ironruby runtime and executes our nails application.