my %page_cache;
for (<tmpl/*>) {
my ($tmpl, $lang) = m,tmpl/(\w+)\.(\w+),;
my %page_cache;
for (<tmpl/*>) {
my ($tmpl, $lang) = m,tmpl/(\w+)\.(\w+),;
$builder->ignore_unknown(0);
$page_cache{$tmpl, $lang} = $builder->parse_file($_);
}
$builder->ignore_unknown(0);
$page_cache{$tmpl, $lang} = $builder->parse_file($_);
}
$process->($tree, %args) if $process;
$_->detach for $tree->look_down(static => $args{static} ? 'no' : 'yes');
$_->attr('static', undef) for $tree->look_down(sub {$_[0]->attr('static')});
$process->($tree, %args) if $process;
$_->detach for $tree->look_down(static => $args{static} ? 'no' : 'yes');
$_->attr('static', undef) for $tree->look_down(sub {$_[0]->attr('static')});
$elem->find('a')->edit_href(sub{s/$/&$str/}) if $str;
}
$tree->fclass('current')->replace_content("Page $args{current_page} of $args{last_page}");
$elem->find('a')->edit_href(sub{s/$/&$str/}) if $str;
}
$tree->fclass('current')->replace_content("Page $args{current_page} of $args{last_page}");