[Templates-svn] r1096 - trunk/lib/Template
svn@template-toolkit.org
svn@template-toolkit.org
Author: abw
Date: 2007-06-05 20:19:08 +0100 (Tue, 05 Jun 2007)
New Revision: 1096
Modified:
trunk/lib/Template/Parser.pm
Log:
tweaked parser to accept a FACTORY config option
Modified: trunk/lib/Template/Parser.pm
===================================================================
--- trunk/lib/Template/Parser.pm 2007-06-05 19:18:38 UTC (rev 1095)
+++ trunk/lib/Template/Parser.pm 2007-06-05 19:19:08 UTC (rev 1096)
@@ -119,7 +119,7 @@
FILE_INFO => 1,
GRAMMAR => undef,
_ERROR => '',
- FACTORY => 'Template::Directive',
+ FACTORY => $config->{ FACTORY } || 'Template::Directive',
}, $class;
# update self with any relevant keys in config