AtteanX-Serializer-RDFa
view release on metacpan or search on metacpan
lib/AtteanX/Serializer/RDFa.pm view on Meta::CPAN
use RDF::RDFa::Generator;
has 'canonical_media_type' => (is => 'ro', isa => Str, init_arg => undef, default => 'application/xhtml+xml');
with 'Attean::API::TripleSerializer';
with 'Attean::API::AbbreviatingSerializer';
has 'style' => (is => 'ro', isa => Maybe[Str]); # TODO: might be improved with OptList?
has 'generator_options' => (is => 'ro', isa => HashRef, default => sub { return {} });
has _opts => (is => 'rw', isa => HashRef, lazy => 1, builder => '_build_opts');
sub _build_opts {
my $self = shift;
my $base = defined($self->base) ? $self->base->abs : undef;
my %opts = (
style => $self->style,
namespacemap => $self->namespaces,
base => $base
( run in 0.809 second using v1.01-cache-2.11-cpan-5f2e87ce722 )