HiD::Role::IsPost - Role for blog posts
package HiD::ThingThatIsAPost; use Moose; with 'HiD::Role::IsPost'; ... 1;
This role is consumed by objects that are blog posts and provides blog post-specific attributes and methods.
DateTime object for this post.
A one-line synopsis of the post (used, e.g., for metadata information used by Open Graph)
It is generally useful to summarize or lead a post with a "read more" tag added to the end of the post. This is ideal for a blog where we might not want to list the full post on the front page.
Returns an arrayref of the twitter handles passed via the twitter parameter.
twitter
Returns c<true> if the post has any twitter handles associated with it, false otherwise.
false
Returns the list of the twitter handles associated with the post.
DEPRECATED: use <twitter_handles> instead.
Returns the first twitter handle given to twitter.
Returns all tags for this post, joined together with commas
Returns a boolean value indicating whether this post is coming from the drafts folder or not.
version 1.991
John SJ Anderson <genehack@genehack.org>
This software is copyright (c) 2015 by John SJ Anderson.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install HiD, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HiD
CPAN shell
perl -MCPAN -e shell install HiD
For more information on module installation, please visit the detailed CPAN module installation guide.