# template->capture(pattern, object, callback) # - replace each occurrence of in the template # with the result of calling on $template->capture('%id%', $self, $self->can('id'));