summaryrefslogtreecommitdiff
path: root/lib/generators/nifty/layout/USAGE
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2012-12-17 12:01:45 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2012-12-17 12:01:45 +0100
commitb80bd744ad873f6fc43018bc4bfb90677de167bd (patch)
tree072c4b0e33d442528555b82c415f5e7a1712b2b0 /lib/generators/nifty/layout/USAGE
parent3e706c2025ecc5523e81ad649639ef2ff75e7bac (diff)
Start of GS5.
Diffstat (limited to 'lib/generators/nifty/layout/USAGE')
-rw-r--r--lib/generators/nifty/layout/USAGE25
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/generators/nifty/layout/USAGE b/lib/generators/nifty/layout/USAGE
new file mode 100644
index 0000000..f94af0d
--- /dev/null
+++ b/lib/generators/nifty/layout/USAGE
@@ -0,0 +1,25 @@
+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