An opinionated CoffeeScript framework for developing single page applications.
Installation
Add these to your application's Gemfile:
gem 'brancusi'
gem 'brancusi-rails'
And then execute:
$ bundle
Or install it yourself as:
$ gem install brancusi
$ gem install brancusi-rails
Usage
Initialize your repository with the necessary application and configuration files:
rails g brancusi:init
Create a controller (with corresponding template):
rails g brancusi:controller home index
Add the necessary routing to app/assets/javascripts/app/config/routes.js.coffee
:
@route '/', 'home#index'
Now start your Rails server!
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request