[Templates-cvs] cvs commit: TT3/lib/Template Directive.pm
cvs@template-toolkit.org
cvs@template-toolkit.org
Fri, 03 Dec 2004 15:51:51 +0000
cvs 04/12/03 15:51:50
Modified: lib/Template Directive.pm
Log:
* added $ERRORS to define some common error messages
Revision Changes Path
1.6 +7 -4 TT3/lib/Template/Directive.pm
Index: Directive.pm
===================================================================
RCS file: /template-toolkit/TT3/lib/Template/Directive.pm,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- Directive.pm 2004/11/26 12:44:26 1.5
+++ Directive.pm 2004/12/03 15:51:50 1.6
@@ -17,7 +17,7 @@
# modify it under the same terms as Perl itself.
#
# REVISION
-# $Id: Directive.pm,v 1.5 2004/11/26 12:44:26 abw Exp $
+# $Id: Directive.pm,v 1.6 2004/12/03 15:51:50 abw Exp $
#
#========================================================================
@@ -28,12 +28,15 @@
use Template::Base;
use base qw( Template::Base );
-our $VERSION = sprintf("%d.%02d", q$Revision: 1.5 $ =~ /(\d+)\.(\d+)/);
+our $VERSION = sprintf("%d.%02d", q$Revision: 1.6 $ =~ /(\d+)\.(\d+)/);
our $DEBUG = 0 unless defined $DEBUG;
our $ERROR = '';
+our $ERRORS = {
+ no_paths => 'missing template path(s) in %s directive',
+ no_params => 'missing parameters in %s directive',
+};
-
#------------------------------------------------------------------------
# init($config)
#
@@ -110,7 +113,7 @@
=head1 VERSION
-$Revision: 1.5 $
+$Revision: 1.6 $
=head1 COPYRIGHT