|
Revision 1157, 0.9 kB
(checked in by wyca..@gmail.com, 11 months ago)
|
Checks in fixes to merb_helpers so the tests pass
|
| Line | |
|---|
| 1 |
merb_helpers |
|---|
| 2 |
================= |
|---|
| 3 |
|
|---|
| 4 |
A plugin for the Merb Web framework that provides different view helpers. |
|---|
| 5 |
|
|---|
| 6 |
To use this plugin in merb in your app |
|---|
| 7 |
|
|---|
| 8 |
config/dependencies.rb |
|---|
| 9 |
|
|---|
| 10 |
#... |
|---|
| 11 |
|
|---|
| 12 |
dependency "merb_helpers" |
|---|
| 13 |
|
|---|
| 14 |
#... |
|---|
| 15 |
|
|---|
| 16 |
By default all modules of merb_helpers are loaded and are available to your merb app. |
|---|
| 17 |
|
|---|
| 18 |
You can selectively include/exclude modules from this list to keep you app lean if you like. |
|---|
| 19 |
The inclusions/exclusions are relative to all modules. |
|---|
| 20 |
|
|---|
| 21 |
\:include: will only include the specified modules. |
|---|
| 22 |
|
|---|
| 23 |
\:exclude: will include all except the specified modules. |
|---|
| 24 |
|
|---|
| 25 |
Do not use :include: and :exclude: options at the same time or an error will be raised. |
|---|
| 26 |
|
|---|
| 27 |
To set this up in config/plugins.yml |
|---|
| 28 |
|
|---|
| 29 |
To Include specified helpers |
|---|
| 30 |
|
|---|
| 31 |
\:merb_helpers: |
|---|
| 32 |
\:include: - date_time_helpers |
|---|
| 33 |
- form_helpers |
|---|
| 34 |
|
|---|
| 35 |
To Exclude specified helpers |
|---|
| 36 |
|
|---|
| 37 |
\:merb_helpers: |
|---|
| 38 |
\:exclude: - date_time_helpers |
|---|
| 39 |
- form_helpers |
|---|