diff options
author | edenc <edenc@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2007-12-17 18:45:59 +0000 |
---|---|---|
committer | edenc <edenc@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2007-12-17 18:45:59 +0000 |
commit | 7ff308905da567a0ac9fbebf63a04ede5696cded (patch) | |
tree | 9f3459ea447365f447d9b7ad22f4edbeaca45c79 /old/Manual/Cookbook.pod | |
parent | 1f9daa1e4b71e08c2c3eae0e0c4cb8fde983dd2d (diff) | |
download | reaction-7ff308905da567a0ac9fbebf63a04ede5696cded.tar.gz reaction-7ff308905da567a0ac9fbebf63a04ede5696cded.zip |
moved docs to /old
Diffstat (limited to 'old/Manual/Cookbook.pod')
-rw-r--r-- | old/Manual/Cookbook.pod | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/old/Manual/Cookbook.pod b/old/Manual/Cookbook.pod new file mode 100644 index 0000000..e04c6ee --- /dev/null +++ b/old/Manual/Cookbook.pod @@ -0,0 +1,74 @@ +=head1 NAME + +Reaction::Manual::Cookbook - Miscellaneous recipes + +=head1 RECIPES + +These should include some hopefully useful tips and tricks! + +=head2 Display + +These would typically go in your /root directory along with your other +templates. + +=head3 Alternating listview row styles with CSS + +Filename: listview + + [% + + PROCESS base/listview; + + row_block = 'listview_row_fancy'; + + BLOCK listview_row_fancy; + + IF loop.count % 2 == 1; + attrs.class = 'dark'; + ELSE; + attrs.class = 'light'; + END; + + INCLUDE listview_row; + + END; + + %] + +=head3 Displaying heading on action forms + +Filename: form_base + + [% + + PROCESS base/form_base; + + main_block = 'form_base_control_fancy'; + + BLOCK form_base_control_fancy; + + action_class = self.action.meta.name.split('::').pop; + '<h3>'; action_class.split('(?=[A-Z])').join(' '); '</h3>'; + INCLUDE form_base_control; + + END; + + %] + +=head2 Controllers + +Things + +=head2 Models + +Stuff + +=head1 AUTHORS + +See L<Reaction::Class> for authors. + +=head1 LICENSE + +See L<Reaction::Class> for the license. + +=cut |