summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2017-12-16 13:20:49 +0100
committerYorhel <git@yorhel.nl>2017-12-16 13:20:49 +0100
commitd77958674603a09c1d8a702dbbe876e10e2c51b6 (patch)
tree18c6a6baa3285827657fe2ff8b198b1274ba98b1 /examples
parentd185f54bdeaeb5af427732ffaec9e986920ee333 (diff)
TUWF::XML: Add "mkclass" utility function
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/singlefile.pl4
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'), $_;
};
}
};