]> Dogcows Code - chaz/p5-CGI-Ex/blobdiff - README
add PSGI handler
[chaz/p5-CGI-Ex] / README
diff --git a/README b/README
index 8fd2d39e4648c9506afb557cdc1e5c0ee35b442c..43ec2c2b627eced217465589c960ba070e272412 100644 (file)
--- a/README
+++ b/README
@@ -223,6 +223,14 @@ CGI::Ex METHODS
         header. Trying to print ->content_type is an error. For clarity, the
         method ->print_content_type is available.
 
+            $cgix->print_content_type;
+
+            # OR
+            $cgix->print_content_type('text/html');
+
+            # OR
+            $cgix->print_content_type('text/html', 'utf-8');
+
     "->set_cookie"
         Arguments are the same as those to CGI->new->cookie({}). Uses CGI's
         cookie method to create a cookie, but then, depending on if content
@@ -268,6 +276,10 @@ CGI::Ex METHODS
         shortened name which will be looked for in @INC. (ie
         /full/path/to/my.js or CGI/Ex/validate.js or CGI::Ex::validate)
 
+            #!/usr/bin/perl
+            use CGI::Ex;
+            CGI::Ex->print_js($ENV{'PATH_INFO'});
+
     "->swap_template"
         This is intended as a simple yet strong subroutine to swap in tags
         to a document. It is intended to be very basic for those who may not
@@ -332,9 +344,9 @@ MODULES
 
     See also CGI::Ex::Validate.
 
-AUTHOR
-    Paul Seamons
-
 LICENSE
     This module may be distributed under the same terms as Perl itself.
 
+AUTHOR
+    Paul Seamons <perl at seamons dot com>
+
This page took 0.018295 seconds and 4 git commands to generate.