[Jifty-commit] r3380 - in jifty/trunk: lib/Jifty/Plugin

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Wed Jun 6 23:15:12 EDT 2007


Author: jesse
Date: Wed Jun  6 23:14:58 2007
New Revision: 3380

Added:
   jifty/trunk/lib/Jifty/Plugin/Feedback.pm
Modified:
   jifty/trunk/   (props changed)

Log:
 r58046 at pinglin:  jesse | 2007-06-06 23:10:17 -0400
 * docs!


Added: jifty/trunk/lib/Jifty/Plugin/Feedback.pm
==============================================================================
--- (empty file)
+++ jifty/trunk/lib/Jifty/Plugin/Feedback.pm	Wed Jun  6 23:14:58 2007
@@ -0,0 +1,42 @@
+use strict;
+use warnings;
+
+package Jifty::Plugin::Feedback;
+use base qw/Jifty::Plugin Class::Accessor/;
+
+# Your plugin goes here.  If takes any configuration or arguments, you
+# probably want to override L<Jifty::Plugin/init>.
+
+=head1 NAME
+
+Jifty::Plugin::Feedback
+
+=head1 DESCRIPTION
+
+This plugin provides a "feedback box" for your app.
+
+
+Add to your app's config:
+
+  Plugins: 
+    - Feedback: 
+        from: defaultsender at example.com
+        to: recipient at example.com
+
+Add to your app's UI where you want the feedback box:
+
+ show '/feedback/request_feedback';
+
+
+=cut
+
+__PACKAGE__->mk_accessors(qw(from to));
+
+sub init {
+    my $self = shift;
+    my %opt = @_;
+    $self->from($opt{'from'});
+    $self->to($opt{'to'});
+}
+
+1;


More information about the Jifty-commit mailing list