Provided by: libtemplate-plugin-calendar-simple-perl_0.02-4_all
NAME
Template::Plugin::Calendar::Simple - TT plugin for Calendar::Simple
SYNOPSIS
[% USE cal = Calendar.Simple %] <table border="1"> [% FOREACH row = cal.rows %] <tr> [% FOREACH col = row %] <td>[% col || ' ' %]</td> [% END %] </tr> [% END %] </table>
DESCRIPTION
This is a first stab at a Calendar::Simple plugin for Template Toolkit.
METHODS
rows [% FOREACH row = cal.rows %] Returns a Template::Iterator which contains the calendar rows. Each row, however, is simply an array. days [% FOREACH day = cal.days %] Most calendars have a header with the days - this method returns an array of abbreviated day names (currently only in English). If any argument is passed, then the week day starts with Monday instead of Sunday.
BUGS
If you have found a bug, typo, etc. please visit Best Practical Solution's CPAN bug tracker at http://rt.cpan.org: <http://rt.cpan.org/NoAuth/Bugs.html?Dist=Template-Plugin-Calendar-Simple> or send mail to <bug-Template-Plugin-Calendar-Simple#rt.cpan.org> (you got this far ... you can figure out how to make that a valid address ... and note that i won't respond to bugs sent to my personal address any longer)
AUTHOR
Jeffrey Hayes Anderson
SEE ALSO
Template::Plugin, Calendar::Simple.
COPYRIGHT
Copyright (c) 2004 Jeffrey Hayes Anderson. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.