CGI-WML
view release on metacpan or search on metacpan
module includes functions for creating correct WML by calling methods of
a query object.
WML Shortcuts may be called in two ways;
With a single parameter, which will be the content of the tag, for
example;
Perl code WML Result
--------------------- ---------------------
$query->b("Bold text); <b>bold</b>
$query->p("Hello"); <p>Hello</p>
$query->p($query->b("Hello")); <p><b>Hello</b></p>
$query->br(); <br/> # "No-close" tags are
# automatically dealt with
Alternatively, they can be called with a list of arguments, specifying
content and attibutes.
t/test.html view on Meta::CPAN
</script>
<BODY>
<!-- Comment with incorrect closure --->
<!-- Multi-line comment
which -- has --embedded-- dashes -->
<p> I am some text.
<i>this is italic</i>
<b> bold</b>
<form method="get" action="/some/where/else.pl">
<input type="text" name="test_textfiled1" value="stuff">
<input type="hidden" name="test_hidden1" value="hiddenval1">
<input type="text" name="test_textfiled2" value="more stuff">
<input type="hidden" name="test_hidden2" value="hiddenval2">
<input type="Submit" value="Search Site">
</form>
<table border="0">
( run in 1.907 second using v1.01-cache-2.11-cpan-d8267643d1d )