our $VERSION = '0.01';
+use LaTeX::TikZ::Interface;
+
use Any::Moose;
with 'LaTeX::TikZ::Mod';
sub tag {
my ($self) = @_;
- ref($self) . '%' . $self->content;
+ ref($self) . '/' . $self->content;
}
sub cover { 1 }
sub apply { $_[0]->content }
-use LaTeX::TikZ::API raw_mod => sub {
- shift;
+LaTeX::TikZ::Interface->register(
+ raw_mod => sub {
+ shift;
- __PACKAGE__->new(content => $_[0]);
-};
+ __PACKAGE__->new(content => $_[0]);
+ },
+);
__PACKAGE__->meta->make_immutable;