$tree->defmap(smap => \%args);
my $process = __PACKAGE__->can("process_$tmpl");
$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')});
$_->attr('smap', undef) for $tree->look_down(sub {$_[0]->attr('smap')});
$tree->as_HTML(undef, undef, $optional_end_tags);
}