Sha256: 941ffe803f3925aaad4b4a5b1d9bad2db87c62e258cb2ebfa94515da575808fa

Contents?: true

Size: 1.4 KB

Versions: 1

Compression:

Stored size: 1.4 KB

Contents

h2. Spinebox

A ready to use spine.js rack skeleton builder with development server, routes, config and precompile support.

* Ideal for single or few page applications
* Fully setup, ready to go spine.js environment
* Develop in coffee-script and sass with fantastic sprockets asset serving
* Use generators and scaffolding just like with rails
* Compile assets and serve the whole app completely static

h3. Installation

bc.. $ gem install spinebox

h3. Usage

Create your javascript app or HTML files just as you're used to it.

In the HTML files you can use partials just like in rails:

bc.. render :partial => "navigation.html"

h4. Create new project

bc.. # Create new project an start developing
$ spinebox new blog
$ cd blog
$ spinebox server
$ open http://localhost:3000/index.html

h4. Generate models, views and controllers

bc.. # Generate a model view and a controller
$ spinebox generate model post title author body
$ spinebox generate controller posts
$ spinebox generate view post

h4. Scaffold

bc.. # Or scaffold all three of them
$ spinebox generate scaffold post title author body

h4. Compile project

bc.. # Compile project for static serving
$ spinebox compile

h3. Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spinebox-0.0.14 README.textile