Mercurial > pub > Impl
view _test/temp.pl @ 349:86b470004d47
added lables loading
author | cin |
---|---|
date | Fri, 04 Oct 2013 17:06:34 +0400 |
parents | f116cd9fe7d9 |
children | f356c4894d1b |
line wrap: on
line source
#!/usr/bin/perl use strict; use IMPL::require { TTContext => 'IMPL::Web::View::TTContext' }; my $ctx = TTContext->new({ INCLUDE_PATH => './Resources/view', INTERPOLATE => 1, RECURSION => 1000 }); print $ctx->invoke_environment(sub { return shift->render( 'product/view',{ model => { name => 'debugger', manufature => { name => 'DEBUGGERS INC', address => [ { coutry => 'Russuia', city => 'Moscow' }, { country => 'GB', city => 'Essex' } ] } } } ); }, { base => 'site', includes => [ 'packages' ], tt_ext => 'tt' });