File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 11Revision history for Template-Mustache
22
33{{$NEXT}}
4+ - Fix incorrect signature, habere-et-dispertire++
45 - Some minor internal tweaks
56
671.2.4 2025-11-02T19:57:46+01:00
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ has $.pragma;
7777has % ! cache ;
7878has $ . logger handles <log >;
7979
80- submethod TWEAK (Callable : & log-routine , : $ log-level ) {
80+ submethod TWEAK (: & log-routine , : $ log-level ) {
8181 $ ! logger // = Logger. new : : routine(& log-routine ), : level($ log-level );
8282}
8383
Original file line number Diff line number Diff line change 11use Test;
22use Template::Mustache;
33
4- plan 9 ;
4+ plan 10 ;
55
66is Template::Mustache.render(
77 Qb[ {{string}}\n],
@@ -60,4 +60,7 @@ is Template::Mustache.render(
6060 'True',
6161 'Triple-mustache substitution works when field name contains a minus';
6262
63+ lives-ok { Template::Mustache.new: :log-routine(&say) },
64+ 'Can specify a log routine';
65+
6366# vim: expandtab shiftwidth=4
You can’t perform that action at this time.
0 commit comments