Write xhtml elements utilising named arguments to guard against typos. Colons in
names of XHTML attributes are replaced with a hyphen (e.g.
xml:lang). Use the the html element names
as an import tag or
:ALL to get them all. Please note that there is a
dd-tag what will
dd from the settings.
The actual module is generated form the official XHTML 1.1 Schema. There is no offical
XML Schema for HTML5 (because it isn't XML), if you happen to come a cross one that works
please let me know.
use XHTML::Writer :ALL;
put html( xml-lang=>'de',
p( class=>"abc", 'your text here'),
p( 'more text' )
use XHTML::Writer :p, :title;
put xhtml-skeleton(p('Hello Camelia!'), header=>title('Hello Camelia'));
use Typesafe::XHTML::Writer :writer-shall-indent; # :ALL will work too
(c) Wenzel P. P. Peppmeyer, Released under Artistic License 2.0.