Template::Caribou::Tags::HTML - Basic HTML tag library
version 1.2.2
package MyTemplate; use Template::Caribou; use Template::Caribou::Tags::HTML; template main => sub { html { head { title { "Website X" } }; body { h1 { "Some Title" }; div { "Blah blah"; }; }; }; };
Exports tag blocks for regular HTML tags.
p html head h1 h2 h3 h4 h5 h6 body emphasis div sup style title span li ol ul i b strong a label link img section article table thead tbody th td table_row fieldset legend form input select option button small textarea
All function names are the same than their tag name, except for table_row, which is for tr (which is an already taken Perl keyword).
table_row
tr
Yanick Champoux <yanick@cpan.org>
This software is copyright (c) 2023 by Yanick Champoux.
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 Template::Caribou, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Template::Caribou
CPAN shell
perl -MCPAN -e shell install Template::Caribou
For more information on module installation, please visit the detailed CPAN module installation guide.