[Jifty-commit] r3236 - in jifty/trunk: .
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Sat May 12 05:41:54 EDT 2007
Author: alech
Date: Sat May 12 05:41:52 2007
New Revision: 3236
Modified:
jifty/trunk/AUTHORS
jifty/trunk/lib/Jifty/Manual/Cookbook.pod
Log:
Added section on dynamically created binary content in the cookbook
Modified: jifty/trunk/AUTHORS
==============================================================================
--- jifty/trunk/AUTHORS (original)
+++ jifty/trunk/AUTHORS Sat May 12 05:41:52 2007
@@ -27,3 +27,4 @@
Christian Ternus <ternus at mit.edu>
David Brunton <dbrunton at yahoo.com>
Marc Mims <marc at questright.com>
+Alexander Klink <alech at cpan.org>
Modified: jifty/trunk/lib/Jifty/Manual/Cookbook.pod
==============================================================================
--- jifty/trunk/lib/Jifty/Manual/Cookbook.pod (original)
+++ jifty/trunk/lib/Jifty/Manual/Cookbook.pod Sat May 12 05:41:52 2007
@@ -388,3 +388,17 @@
If you've actually installed your app into C<@INC>, you can skip the
C<use lib> line.
+=head2 Send out dynamically created binary data
+
+In a C<Template::Declare> view, do something like this:
+
+ template 'image' => sub {
+ # ...
+ # create dynamic $image, for example using Chart::Clicker
+
+ Jifty->handler->apache->content_type('image/png');
+ Jifty->web->out($image);
+ };
+
+=for comment
+Document how to do this with Mason
More information about the Jifty-commit
mailing list