comparison 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
comparison
equal deleted inserted replaced
155:05df123a2ff1 156:8638dd1374bf
22 public property defaultTarget => prop_all; 22 public property defaultTarget => prop_all;
23 public property pathinfoPrefix => prop_all; 23 public property pathinfoPrefix => prop_all;
24 public property cache => prop_all; 24 public property cache => prop_all;
25 public property preprocess => prop_all; 25 public property preprocess => prop_all;
26 public property formatOutput => prop_all; 26 public property formatOutput => prop_all;
27 public property template => prop_all;
27 } 28 }
28 29
29 sub CTOR { 30 sub CTOR {
30 my ($this) = @_; 31 my ($this) = @_;
31 32
72 73
73 my @pathContainer = @path; 74 my @pathContainer = @path;
74 pop @pathContainer; 75 pop @pathContainer;
75 76
76 $doc->LoadFile ( 77 $doc->LoadFile (
77 File::Spec->catfile($this->templatesBase,@path), 78 ($this->template || File::Spec->catfile($this->templatesBase,@path)),
78 $this->templatesCharset, 79 $this->templatesCharset,
79 $this->templatesBase, 80 $this->templatesBase,
80 { 81 {
81 result => scalar($nextHandler->()), 82 result => scalar($nextHandler->()),
82 action => $action, 83 action => $action,