📄 js-products.html.tmpl
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1150320054', 'name' => 'global/js-products.html.tmpl', }, BLOCK => sub { my $context = shift || die "template sub called without context\n"; my $stash = $context->stash; my $output = ''; my $_tt_error; eval { BLOCK: { $output .= "\n"; $output .= "\n\n"; #line 33 "template\en\default\global\js-products.html.tmpl" # CAPTURE $stash->set('javascript', do { my $output = ''; $output .= "\n var usetms = 0; // do we have target milestone?\n var first_load = 1; // is this the first time we load the page?\n var last_sel = []; // caches last selection\n var cpts = new Array();"; #line 32 "template\en\default\global\js-products.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get('products'); unless (UNIVERSAL::isa($_tt_list, 'Template::Iterator')) { $_tt_list = Template::Config->iterator($_tt_list) || die $Template::Config::ERROR, "\n"; } ($_tt_value, $_tt_error) = $_tt_list->get_first(); eval { $_tt_oldloop = $stash->get('loop') }; $stash->set('loop', $_tt_list); eval { LOOP: while (! $_tt_error) { $stash->{'prod'} = $_tt_value; $output .= "\n cpts['"; #line 30 "template\en\default\global\js-products.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('js') || $context->throw($context->error); $output .= $stash->get(['prod', 0, 'name', 0]); &$_tt_filter($output); }; $output .= "'] = ["; #line 31 "template\en\default\global\js-products.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get(['prod', 0, 'components', 0]); unless (UNIVERSAL::isa($_tt_list, 'Template::Iterator')) { $_tt_list = Template::Config->iterator($_tt_list) || die $Template::Config::ERROR, "\n"; } ($_tt_value, $_tt_error) = $_tt_list->get_first(); eval { $_tt_oldloop = $stash->get('loop') }; $stash->set('loop', $_tt_list); eval { LOOP: while (! $_tt_error) { $stash->{'comp'} = $_tt_value; $output .= "'"; #line 31 "template\en\default\global\js-products.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('js') || $context->throw($context->error); $output .= $stash->get(['comp', 0, 'name', 0]); &$_tt_filter($output); }; $output .= "'"; #line 31 "template\en\default\global\js-products.html.tmpl" if (!($stash->get(['loop', 0, 'last', 0]))) { $output .= ', '; } ; ($_tt_value, $_tt_error) = $_tt_list->get_next(); } }; $stash->set('loop', $_tt_oldloop); die $@ if $@; $_tt_error = 0 if $_tt_error && $_tt_error eq Template::Constants::STATUS_DONE; die $_tt_error if $_tt_error; }; $output .= " ];";; ($_tt_value, $_tt_error) = $_tt_list->get_next(); } }; $stash->set('loop', $_tt_oldloop); die $@ if $@; $_tt_error = 0 if $_tt_error && $_tt_error eq Template::Constants::STATUS_DONE; die $_tt_error if $_tt_error; }; $output; }); $output .= "\n"; } }; if ($@) { $_tt_error = $context->catch($@, \$output); die $_tt_error unless $_tt_error->type eq 'return'; } return $output; }, DEFBLOCKS => { },});
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -