DAUFT
Design Applications Using Foundation Templates
This gem uses Zurb Foundation HTML templates.
This gem requires you to install zurb-foundation gem.
For the current version, these are the available templates: Banded, Blog, Feed, Grid, and Store
Installation
First, add this to your Gemfile:
gem 'zurb-foundation'
Then, add this again to your Gemfile under development group:
gem 'dauft'
And then execute:
$ bundle
Usage
First, setup zurb-foundation:
$ rails g foundation:install
Templates:
Banded, Blog, Feed, Grid, and Store
To create a layout:
$ rails g dauft:layout template_name
$ rails g dauft:layout store
To use this template for a controller, add this line to your controller:
layout 'template_name'
layout 'store'
To create views that uses a template:
$ rails g dauft:view template_name controller_name action_1 action_2
$ rails g dauft:view store products index
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
Links/References
- Zurb Foundation home page: http://foundation.zurb.com/
- Zurb Foundation github: https://github.com/zurb/foundation
- Zurb Foundation templates: http://foundation.zurb.com/templates.php