Sha256: a7097c99ee51fb1c9f160634b8a05a3aa470979b4bb1b4ed9d625fab2e832615

Contents?: true

Size: 898 Bytes

Versions: 3

Compression:

Stored size: 898 Bytes

Contents

Description:
  The nifty_layout generator creates a basic layout, stylesheet and
  helper which will give some structure to a starting Rails app.
  
  The generator takes one argument which will be the name of the
	layout and stylesheet files. If no argument is passed then it defaults
	to "application".
  
  The helper module includes some methods which can be called in any
  template or partial to set variables to be used in the layout, such as
  page title and javascript/stylesheet includes.

Examples:
    rails generate nifty:layout

        Layout:     app/views/layouts/application.html.erb
        Stylesheet: public/stylesheets/application.css
        Helper:     app/helpers/layout_helper.rb


    rails generate nifty:layout admin

        Layout:     app/views/layouts/admin.html.erb
        Stylesheet: public/stylesheets/admin.css
        Helper:     app/helpers/layout_helper.rb

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
corntrace-nifty-generators-0.4.1 lib/generators/nifty/layout/USAGE
corntrace-nifty-generators-0.4.0 lib/generators/nifty/layout/USAGE
nifty-generators-0.4.0 lib/generators/nifty/layout/USAGE