Mercurial > pub > Impl
comparison _test/temp.pl @ 350:f356c4894d1b
working on TTView: layouts
| author | cin |
|---|---|
| date | Mon, 07 Oct 2013 17:35:54 +0400 |
| parents | 86b470004d47 |
| children | cfd7570c2af2 |
comparison
equal
deleted
inserted
replaced
| 349:86b470004d47 | 350:f356c4894d1b |
|---|---|
| 10 INTERPOLATE => 1, | 10 INTERPOLATE => 1, |
| 11 RECURSION => 1000 | 11 RECURSION => 1000 |
| 12 }); | 12 }); |
| 13 | 13 |
| 14 print $ctx->invoke_environment(sub { | 14 print $ctx->invoke_environment(sub { |
| 15 return shift->render( | 15 my ($this) = @_; |
| 16 'product/view',{ | 16 return $this->render( |
| 17 model => { | 17 'default', |
| 18 name => 'debugger', | 18 { |
| 19 manufature => { | 19 content => sub { |
| 20 name => 'DEBUGGERS INC', | 20 return $this->invoke_environment( |
| 21 address => [ | 21 sub { |
| 22 { | 22 shift->render( |
| 23 coutry => 'Russuia', | 23 'product/view', |
| 24 city => 'Moscow' | 24 { |
| 25 }, | 25 model => { |
| 26 { | 26 name => 'debugger', |
| 27 country => 'GB', | 27 manufature => { |
| 28 city => 'Essex' | 28 name => 'DEBUGGERS INC', |
| 29 } | 29 address => [ |
| 30 ] | 30 { |
| 31 } | 31 coutry => 'Russuia', |
| 32 } | 32 city => 'Moscow' |
| 33 } | 33 }, |
| 34 { | |
| 35 country => 'GB', | |
| 36 city => 'Essex' | |
| 37 } | |
| 38 ] | |
| 39 } | |
| 40 } | |
| 41 } | |
| 42 ); | |
| 43 }, { | |
| 44 base => 'site' | |
| 45 } | |
| 46 ); | |
| 47 } | |
| 48 } | |
| 34 ); | 49 ); |
| 35 }, { | 50 }, { |
| 36 base => 'site', | 51 base => 'layout', |
| 37 includes => [ | 52 includes => [ |
| 38 'packages' | 53 'packages' |
| 39 ], | 54 ], |
| 40 tt_ext => 'tt' | 55 tt_ext => 'tt', |
| 56 document => { | |
| 57 title => 'Test document' | |
| 58 } | |
| 41 }); | 59 }); |
| 42 | 60 |
