]> git.decadent.org.uk Git - maypole.git/commitdiff
tested and it seems to work
authorAaron Trevena <aaron.trevena@gmail.com>
Mon, 31 Jul 2006 19:18:01 +0000 (19:18 +0000)
committerAaron Trevena <aaron.trevena@gmail.com>
Mon, 31 Jul 2006 19:18:01 +0000 (19:18 +0000)
git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@519 48953598-375a-da11-a14b-00016c27c3ee

lib/Maypole.pm
lib/Maypole/View/TT.pm

index 56c94e3748fb28fa9e92daac0f79c881662287ae..d476b56a46e55ed9dad22695f8a10e33b9e0db5d 100644 (file)
@@ -12,7 +12,7 @@ use URI::QueryParam;
 use NEXT;
 use File::MMagic::XS qw(:compat);
 
 use NEXT;
 use File::MMagic::XS qw(:compat);
 
-our $VERSION = '2.11_pre5';
+our $VERSION = '2.11';
 our $mmagic = File::MMagic::XS->new();
 
 # proposed privacy conventions:
 our $mmagic = File::MMagic::XS->new();
 
 # proposed privacy conventions:
index fb94767f0bf24964720fb516110395dd7936c2af..b7a59a2f565813c9a5c3c4a7ffaee12d845ac232 100644 (file)
@@ -286,6 +286,18 @@ truncate, format, escape or encode trivially. A useful selection is included
 with Template Toolkit and they can also be found on CPAN or can be written
 easily. See L<Template::Manual::Filters>.
 
 with Template Toolkit and they can also be found on CPAN or can be written
 easily. See L<Template::Manual::Filters>.
 
+TT provides stderr and stdout filters, which allow you to write handy macros
+like this one to output debug information to your web server log, etc :
+
+=over 4
+
+[% MACRO debug_msg(text)
+    FILTER stderr; "[TT debug_msg] $text\n"; END;
+%]
+
+=back
+
+
 TT Macros allow you to reuse small blocks of content, directives, etc. The MACRO
 directive allows you to define a directive or directive block which is then
 evaluated each time the macro is called. Macros can be passed named parameters
 TT Macros allow you to reuse small blocks of content, directives, etc. The MACRO
 directive allows you to define a directive or directive block which is then
 evaluated each time the macro is called. Macros can be passed named parameters