Skip to content

Commit a0f5ba1

Browse files
authored
Merge pull request #34 from tomsix/mustache-v3
Update Mustache to v3
2 parents 1593053 + e448645 commit a0f5ba1

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"authors": [{"name": "Vestaboard"}],
77
"require": {
88
"php": "^8.1",
9-
"mustache/mustache": "^2.14"
9+
"ext-mbstring": "*",
10+
"mustache/mustache": "^v3.0.0"
1011
},
1112
"require-dev": {
1213
"phpunit/phpunit": "^10.0"

php/src/Classic.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ private static function getCharMap(): array
4646
'' => 54, '¤' => 62, '' => 62, '·' => 62,
4747
"\u{201C}" => 53, "\u{201D}" => 53,
4848
"\u{2018}" => 52, "\u{2019}" => 52,
49-
'' => 53, '¨' => 53, "\u{2019}" => 52,
49+
'' => 53, '¨' => 53,
5050
'ˋ' => 52, 'ˊ' => 52,
5151
'' => 52, '`' => 52, '´' => 52, '' => 53,
5252
'â' => 1, 'ä' => 1, 'à' => 1, 'å' => 1, 'á' => 1,

php/src/ParseProps.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Vestaboard\Vbml;
44

5-
use Mustache_Engine;
5+
use Mustache\Engine;
66

77
/**
88
* Port of parseProps.ts
@@ -11,7 +11,7 @@ class ParseProps
1111
{
1212
public static function parse(array $props, string $template): string
1313
{
14-
$mustache = new Mustache_Engine();
14+
$mustache = new Engine();
1515
return $mustache->render($template, $props);
1616
}
1717
}

0 commit comments

Comments
 (0)