NAME

Mojolicious::Plugin::MostTagHelpers - Most tag helpers for your Mojolicious templates and slides

SYNOPSIS

 # Mojolicious
 $app->plugin('MostTagHelpers');

 # Mojolicious::Lite
 plugin 'MostTagHelpers';

 %= 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>

DESCRIPTION

Extra tag helpers useful for templating and slide making

NON-ELEMENT HELPERS

incremental
%= 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.

ELEMENTS

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.

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.

a
abbr
acronym
address
applet
area
base
basefont
bdo
bgsound
big
blockquote
body
br
button
caption
center
cite
code
col
colgroup
dd
del
dfn
dir
div
dl
dt
em
embed
fieldset
font
form
frame
frameset
h1
h2
h3
h4
h5
h6
hr
html
i
iframe
ilayer
img
input
ins
isindex
kbd
label
legend
li
listing
map
meta
multicol
nobr
noembed
noframes
nolayer
noscript
object
ol
optgroup
option
p
param
plaintext
pre
q
s
samp
script
select
small
spacer
span
strike
strong
style
sub
sup
table
tbody
td
textarea
tfoot
th
thead
title
tr
tt
u
ul
var
wbr
xmp
~comment
~directive
~literal
~pi

INSTALLATION

To install this module, run the following commands:

perl Build.PL
./Build
./Build test
./Build install

SUPPORT AND DOCUMENTATION

After installing, you can find documentation for this module with the perldoc command.

perldoc Mojolicious::Plugin::MostTagHelpers

You can also look for information at:

AnnoCPAN, Annotated CPAN documentation
    http://annocpan.org/dist/Mojolicious-Plugin-MostTagHelpers

CPAN Ratings
    http://cpanratings.perl.org/d/Mojolicious-Plugin-MostTagHelpers

Search CPAN
    http://search.cpan.org/dist/Mojolicious-Plugin-MostTagHelpers/

SEE ALSO

Mojolicious::Plugin::TagHelpers App::MojosSlides

SOURCE REPOSITORY

http://github.com/hrupprecht/Mojolicious-Plugin-MostTagHelpers

AUTHOR

Joel Berger - joel.a.berger@gmail.com

Holger Rupprecht - Holger.Rupprecht@gmx.de

This project is an extracted part of App::MojoSlides, created by Joel Berger, joel.a.berger@gmail.com.

COPYRIGHT AND LICENSE

Copyright (C) 2013 by Joel Berger and Holger Rupprecht

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