Sha256: 9b7e71ccafd13ec9237d57726dff9a86f1f11068088e5dd5961e8026b799b81e
Contents?: true
Size: 904 Bytes
Versions: 3
Compression:
Stored size: 904 Bytes
Contents
Description: The niftier_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 niftier:layout Layout: app/views/layouts/application.html.erb Stylesheet: public/stylesheets/application.css Helper: app/helpers/layout_helper.rb rails generate niftier: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 & 1 rubygems
Version | Path |
---|---|
niftier-generators-0.1.2 | lib/generators/niftier/layout/USAGE |
niftier-generators-0.1.1 | lib/generators/niftier/layout/USAGE |
niftier-generators-0.1.0 | lib/generators/niftier/layout/USAGE |