<!--
=head1 NAME

editbuttons.wmk - still under development

=head1 LOADING

  < use plugin="editbuttons" path="/edit" />

=head1 SYNOPSIS

Not implemented yet.

=cut

-->

<{perl

  my $path = get_content ("editbuttons.path");

  # TODO - check path
  if (1) {
    my $main = $self->get_webmake_main_object();
    $main->{start_parsing_introspection} = 1;

    # TODO - remove path from URL

    $main->add_content_xform_hook (
      sub {
	my ($self, $textref) = @_;
	return if ($self->is_generated_content());
	return if ($self->is_template_content());
	$$textref .= " [".$self->get_edit_href()."]";
      }
    );
  }

  '';

}>

