projects
/
scpubgit/HTML-String.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
TT's new takes a hashref or a hash
[scpubgit/HTML-String.git]
/
lib
/
HTML
/
String
/
TT.pm
diff --git
a/lib/HTML/String/TT.pm
b/lib/HTML/String/TT.pm
index
fb1f1cb
..
90b1ec5
100644
(file)
--- a/
lib/HTML/String/TT.pm
+++ b/
lib/HTML/String/TT.pm
@@
-13,7
+13,7
@@
sub new {
FACTORY => 'HTML::String::TT::Directive'
),
STASH => Template::Stash->new,
- @_
+ (ref($_[0]) eq 'HASH' ? %{$_[0]} : @_)
);
}