diff options
author | Yorhel <git@yorhel.nl> | 2017-12-16 13:20:49 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2017-12-16 13:20:49 +0100 |
commit | d77958674603a09c1d8a702dbbe876e10e2c51b6 (patch) | |
tree | 18c6a6baa3285827657fe2ff8b198b1274ba98b1 /examples | |
parent | d185f54bdeaeb5af427732ffaec9e986920ee333 (diff) |
TUWF::XML: Add "mkclass" utility function
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/singlefile.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/singlefile.pl b/examples/singlefile.pl index 8c70c24..0a9445a 100755 --- a/examples/singlefile.pl +++ b/examples/singlefile.pl @@ -19,7 +19,7 @@ use lib $ROOT.'/lib'; # load TUWF and import all html functions -use TUWF ':html5'; +use TUWF ':html5', 'mkclass'; TUWF::set debug => 1; @@ -33,7 +33,7 @@ TUWF::get '/' => sub { Ul sub { for (qw|awesome cool etc|) { Li sub { - A href => "/sub/$_", $_; + A href => "/sub/$_", mkclass(awesome => $_ eq 'awesome'), $_; }; } }; |