Skip to content

Commit 072b42f

Browse files
committed
Use MustacheJsCompiler to make Mustache templates usable with JST
1 parent b797917 commit 072b42f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/Pipe/Environment.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ function __construct($root = null)
5757

5858
$this->registerEngine('\\Pipe\\JstProcessor', '.jst');
5959

60+
# Override Mustache compiler with more useful Mustache to JS compiler,
61+
# which is usable with the JST processor
62+
$this->registerEngine('\\MetaTemplate\\Template\\MustacheJsTemplate', '.mustache');
63+
6064
# Register default processors
6165
$this->registerPreProcessor('text/css', '\\Pipe\\ImportProcessor');
6266
$this->registerPreProcessor('text/css', '\\Pipe\\DirectiveProcessor');

0 commit comments

Comments
 (0)