diff Lib/IMPL/Web/QueryHandler/PageFormat.pm @ 134:44977efed303

Significant performance optimizations Fixed recursion problems due converting objects to JSON Added cache support for the templates Added discovery feature for the web methods
author wizard
date Mon, 21 Jun 2010 02:39:53 +0400
parents e4f15cbc3f1a
children f6af119ac741
line wrap: on
line diff
--- a/Lib/IMPL/Web/QueryHandler/PageFormat.pm	Fri Jun 18 16:27:28 2010 +0400
+++ b/Lib/IMPL/Web/QueryHandler/PageFormat.pm	Mon Jun 21 02:39:53 2010 +0400
@@ -14,18 +14,21 @@
 	public property templatesBase => prop_all;
 	public property defaultTarget => prop_all;
 	public property pathinfoPrefix => prop_all;
+	public property cache => prop_all;
 }
 
 sub CTOR {
 	my ($this) = @_;
 	
 	$this->templatesCharset('utf-8') unless $this->templatesCharset;
+	$this->cache(File::Spec->rel2abs($this->cache)) if $this->cache;
+	$this->templatesBase(File::Spec->rel2abs($this->templatesBase)) if $this->templatesBase;
 }
 
 sub Process {
 	my ($this,$action,$nextHandler) = @_;
 	
-	my $doc = new IMPL::Web::TT::Document();
+	my $doc = new IMPL::Web::TT::Document(cache => $this->cache);
 	
 	try {