Happy CSS Naked Day!
It’s that time again. Thanks to the W3C for making this all possible!
(Special thanks to Dustin Diaz for the original idea.)
script
tag to your markup that only references an external source file (so distant from the head
and body
tags), make sure that you have an empty string in the block for CGI.pm to taste. Self closed tags other than img
and friends? Browser don’t play dat.
Here’s a snippet of what I referred to:
#!/usr/bin/env perl
use strict;
use warnings;
use CGI;
my $o = new CGI;
print $o->script({-src=>'/path/to/script/file'},'');
Without that empty set of quotes, CGI.pm gives you this output: <script src="/path/to/script/file" />
. Once the empty string is in there, however, things work as expected: <script src="/path/to/script/file"></script>
.