diff Lib/IMPL/Web/QueryHandler/PageFormat.pm @ 156:8638dd1374bf

Added template property to IMPL::Web::QueryHandler::PageFormat (this allows to specify exact template (filename, ref to a scalar, ref to a file handle)).
author wizard
date Tue, 05 Oct 2010 17:20:51 +0400
parents eb478083f72b
children 3f09584bf189
line wrap: on
line diff
--- a/Lib/IMPL/Web/QueryHandler/PageFormat.pm	Thu Sep 30 18:11:32 2010 +0400
+++ b/Lib/IMPL/Web/QueryHandler/PageFormat.pm	Tue Oct 05 17:20:51 2010 +0400
@@ -24,6 +24,7 @@
 	public property cache => prop_all;
 	public property preprocess => prop_all;
 	public property formatOutput => prop_all;
+	public property template => prop_all;
 }
 
 sub CTOR {
@@ -74,7 +75,7 @@
 		pop @pathContainer;
 		
 		$doc->LoadFile (
-			File::Spec->catfile($this->templatesBase,@path),
+			($this->template || File::Spec->catfile($this->templatesBase,@path)),
 			$this->templatesCharset,
 			$this->templatesBase,
 			{