projects
/
gruntmaster-page.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
a14915b
)
Merge branch 'master' into newmc
author
Marius Gavrilescu
<marius@ieval.ro>
Sat, 11 Apr 2015 12:07:58 +0000
(15:07 +0300)
committer
Marius Gavrilescu
<marius@ieval.ro>
Sat, 11 Apr 2015 12:07:58 +0000
(15:07 +0300)
lib/Plack/App/Gruntmaster/HTML.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Plack/App/Gruntmaster/HTML.pm
b/lib/Plack/App/Gruntmaster/HTML.pm
index a50199853c638274bbbbf089b90ad2084021f026..8df45ee4f839113259def81fcadf982c14e813d2 100644
(file)
--- a/
lib/Plack/App/Gruntmaster/HTML.pm
+++ b/
lib/Plack/App/Gruntmaster/HTML.pm
@@
-11,9
+11,11
@@
use Data::Dumper qw/Dumper/;
sub ftime ($) { POSIX::strftime '%c', localtime shift }
sub literal ($) {
+ my ($html) = @_;
+ return unless $html;
my $b = HTML::TreeBuilder->new;
$b->ignore_unknown(0);
- $b->parse(
shift // ''
);
+ $b->parse(
$html
);
HTML::Element::Library::super_literal $b->guts->as_HTML;
}
This page took
0.0101 seconds
and
4
git commands to generate.