Mercurial > pub > Impl
comparison _test/temp.pl @ 349:86b470004d47
added lables loading
author | cin |
---|---|
date | Fri, 04 Oct 2013 17:06:34 +0400 |
parents | f116cd9fe7d9 |
children | f356c4894d1b |
comparison
equal
deleted
inserted
replaced
348:f116cd9fe7d9 | 349:86b470004d47 |
---|---|
8 my $ctx = TTContext->new({ | 8 my $ctx = TTContext->new({ |
9 INCLUDE_PATH => './Resources/view', | 9 INCLUDE_PATH => './Resources/view', |
10 INTERPOLATE => 1, | 10 INTERPOLATE => 1, |
11 RECURSION => 1000 | 11 RECURSION => 1000 |
12 }); | 12 }); |
13 | |
14 warn $ctx->load_templates->[0]->include_path->[0]; | |
15 | 13 |
16 print $ctx->invoke_environment(sub { | 14 print $ctx->invoke_environment(sub { |
17 return shift->render( | 15 return shift->render( |
18 'product/view',{ | 16 'product/view',{ |
19 model => { | 17 model => { |