diff Lib/IMPL/Web/TT/Document.pm @ 121:92c850d0bdb9

Minor changes Fixed bug with templates base in the PageFormat module Added an ability to remove current security context with a specified
author wizard
date Tue, 08 Jun 2010 03:38:10 +0400
parents 0475eb382085
children 0dce0470a3d8
line wrap: on
line diff
--- a/Lib/IMPL/Web/TT/Document.pm	Mon Jun 07 17:45:14 2010 +0400
+++ b/Lib/IMPL/Web/TT/Document.pm	Tue Jun 08 03:38:10 2010 +0400
@@ -147,7 +147,7 @@
 }
 
 sub LoadFile {
-    my ($this,$filePath,$encoding) = @_;
+    my ($this,$filePath,$encoding,@includes) = @_;
     
     die new IMPL::InvalidArgumentException("A filePath parameter is required") unless $filePath;
     
@@ -165,7 +165,7 @@
         INTERPOLATE => 1,
         PRE_CHOMP => 1,
         POST_CHOMP => 1,
-        INCLUDE_PATH => $inc
+        INCLUDE_PATH => [$inc,@includes]
     );
     
     $this->template($this->context->template($fileName));