App::MojoSlides::MoreTagHelpers - More tag helpers for your templated and slides
%= div '#mydiv.myclass' => begin %= p '.myp.myq' => 'Text' %= p 'Other Text' % end <div id="mydiv" class="myclass"> <p class="myp myq">Text</p> <p>Other Text</p> </div>
Extra tag helpers useful for templating and slide making
%= ul begin %= incremental begin %= li 'Always shown' %= li 'Shown after one click' % end % end %= incremental ul begin %= li 'Always shown' %= li 'Shown after one click' % end <ul> <li ms_overlay="1-">Always shown</li> <li ms_overlay="2-">Shown after one click</li> </ul>
Adds ms_overlay attributes to a sequence of elements with increasing start number. Note that if passed an html element which has only one element, the attributes will be applied to the children of that attribute. Because of this, the two templates above result in the same shown output.
This module wraps lots of the HTML tags (though not all) into helpers. If the helper gets a first argument that starts with # or ., that argument is parsed like a selector. Note that only one id (the first) will be used if multiple are given. Note that if id or class or attributes are passed by name, they will overwrite these.
#
.
id
class
While this module wraps a large number of HTML tags some have not been included. Some elements are not included because of conflicts with existing keywords or helpers. Others are not likely to be useful and are not included. This list may change in the future, but common tags which meet the above critera are likely stable.
To install Mojolicious::Plugin::MostTagHelpers, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious::Plugin::MostTagHelpers
CPAN shell
perl -MCPAN -e shell install Mojolicious::Plugin::MostTagHelpers
For more information on module installation, please visit the detailed CPAN module installation guide.