MooX::Role::SEOTags

GitHub Actions Workflow Status CPAN Version

A Moo role for generating SEO meta tags (OpenGraph, Twitter, and more) for your Perl web objects.

Features

For more explanation of the motivation behind this module, see the blog post Easy SEO for lazy programmers.

Installation

cpanm MooX::Role::SEOTags

Usage

package MyWebPage;
use Moo;
with 'MooX::Role::SEOTags';

has 'og_title' => (is => 'ro', required => 1);
has 'og_type'  => (is => 'ro', required => 1);
has 'og_url'   => (is => 'ro', required => 1);
has 'og_image' => (is => 'ro'); # optional

# ...

See the module POD for full documentation.

Code, bugs and questions

This module is available on CPAN.

The code is available on GitHub.

For any questions, bug reports or suggestions, please use the issue tracker.

Author

Dave Cross dave@perlhacks.com

License

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.