NAME
HiD::Processor::IIBlog - The modified form of HiD::Proccessor::Handlebars we use to publish II's blog
SYNOPSIS
my $processor = HiD::Proccessor::IIBlog->new({ arg => $val });
DESCRIPTION
Wraps up a Text::Xslate object and allows it to be used during HiD publication.
Custom Xslate functions
The Text::Xslate object created by this processor provides a few custom utility functions.
- commafy( \@list )
-
Joins the items of the list with commas. Neither an Oxford comma nor conjunction for the terminal element is included.
- lc( $string )
-
Lowercases the string.
- lightbox( img => $img, alt => $alt, width => $width )
-
Creates a ligthbox. Both
img
andalt
are mandatory.width
, if not provided, defaults to300
. Requires installation of Magnific Popup elements for full functioning; see http://dimsemenov.com/plugins/magnific-popup. - pretty_date( $datetime )
-
Takes in a DateTime object and returns a string of the format
17 Aug 2017
.
VERSION
version 1.99
AUTHOR
John SJ Anderson <genehack@genehack.org>
COPYRIGHT AND LICENSE
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.