diff _test/temp.pl @ 353:feeb3bc4a818

corrected error handling while loading templates corrected variables lookup in controls updated handles to use the new view features
author cin
date Fri, 11 Oct 2013 15:49:04 +0400
parents 675cd1829255
children d5c8b955bf8d
line wrap: on
line diff
--- a/_test/temp.pl	Thu Oct 10 19:51:19 2013 +0400
+++ b/_test/temp.pl	Fri Oct 11 15:49:04 2013 +0400
@@ -16,8 +16,9 @@
 		RECURSION => 1000,
 		COMPILE_DIR => '/tmp/ttc'
 	},
-	view => 'site',
-	layout => 'layout',
+	viewBase => 'site',
+	layoutBase => 'layout',
+	layout => 'default',
 	includes => [
 		'packages'
 	]
@@ -42,8 +43,7 @@
 
 print $view->display(
 	$model,
-	'product/view',
-	{ layout => 'default' }
+	'product/view'
 ), "\n";
 
 print "render page: ",tv_interval($t,[gettimeofday]),"s\n";
@@ -52,8 +52,7 @@
 
 $view->display(
 	$model,
-	'product/view',
-	{ layout => 'default' }
+	'product/view'
 );
 
 print "2nd render page: ",tv_interval($t,[gettimeofday]),"s\n";