Marblesjs
NOTE: The API is currently still in flux, stay aware of changes before updating.
Marbles is a JavaScript framework inspired by Backbone.js and React.
There is no view component, it's recomended you use React.
Usage
npm
npm install marbles
var Router = ;var extend = extend;// ...
Sprockets
# Gemfile
# or some other means of ES6 module support ::Sprockets::Environment.new do |env| # we're not using the directive processor, so unregister it env.unregister_preprocessor( 'application/javascript', ::Sprockets::DirectiveProcessor) ::MarblesJS::Sprockets.setup(env)end
Docs
cd docs
python -m SimpleHTTPServer
and open localhost:8000 in your browser.
Building
npm install
bundle
bundle exec rake compile
Some TODOs
- Finalize API / work out inconsistencies
- Move away from callbacks and use Dispatcher events and promises instead
- Write tests (API is nearing completion and is no longer likely to drastically change).
- Write more in-depth usage examples
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