Skip to content

Commit

Permalink
Document change to enable()/disable() in readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
canton7 committed Jun 9, 2011
1 parent 07b8cd9 commit 78ffcd2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion readme.md
Expand Up @@ -115,7 +115,8 @@ array element.
**enabled**: Whether a group is enabled. A group will only be rendered when it is enabled.

Groups can be enabled using `Casset::enable_js('group_name')`, and disabled using `Casset::disable_js('group_name')`. CSS equivalents also exist.
The shortcuts `Casset::enable('group_name')` and `Casset::disable('group_name')` also exist, which will enable/disable both the js and css groups of the given name, if they exist.
The shortcuts `Casset::enable('group_name')` and `Casset::disable('group_name')` also exist, which will enable/disable both the js and css groups of the given name, if they exist.
You can also pass an array of groups to enable/disable.

Specific groups can be rendered using eg `Casset::render_js('group_name')`. If no group name is passed, *all* groups will be rendered.
Note that when a group is rendered, it is disabled. See the "Extra attributes" section for an application of this functionality.
Expand Down

0 comments on commit 78ffcd2

Please sign in to comment.