Skip to content

Commit 4a0066b

Browse files
committed
Fix issue #1
1 parent 73a4b46 commit 4a0066b

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

Changes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Revision history for Template-Mustache
22

33
{{$NEXT}}
4+
- Fix incorrect signature, habere-et-dispertire++
45
- Some minor internal tweaks
56

67
1.2.4 2025-11-02T19:57:46+01:00

lib/Template/Mustache.rakumod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ has $.pragma;
7777
has %!cache;
7878
has $.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

t/01-basic.rakutest

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use Test;
22
use Template::Mustache;
33

4-
plan 9;
4+
plan 10;
55

66
is 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

0 commit comments

Comments
 (0)