summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2017-12-27 10:16:22 +0100
committerYorhel <git@yorhel.nl>2017-12-27 10:17:22 +0100
commit35776908b286b3f31a7d14f745f5ec6641c97fd6 (patch)
tree2b8b4c53992cf3a78a56295374d635b7bc03c981 /examples
parent60273e1e79ed06840530450b2888cfa5c8933cce (diff)
TUWF::XML: Support multiple function naming flavors
Read: "I've no clue which style is best and everyone has their own opinions, so let's just support everything!" This is a breaking change for the :html5 group, but that group was only added recently and did not yet make it into a stable TUWF release, so there's little actual breakage.
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/singlefile.pl8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/singlefile.pl b/examples/singlefile.pl
index 0a9445a..88f8d09 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', 'mkclass';
+use TUWF ':Html5', 'mkclass';
TUWF::set debug => 1;
@@ -46,9 +46,9 @@ TUWF::get '/' => sub {
TUWF::get qr{/sub/(?<capturename>.*)} => sub {
# output a plain text file containing $uri
tuwf->resHeader('Content-Type' => 'text/plain; charset=UTF-8');
- lit tuwf->capture(1);
- lit "\n";
- lit tuwf->capture('capturename');
+ Lit tuwf->capture(1);
+ Lit "\n";
+ Lit tuwf->capture('capturename');
};