Skip to content

Commit

Permalink
Use MustacheJsCompiler to make Mustache templates usable with JST
Browse files Browse the repository at this point in the history
  • Loading branch information
CHH committed Jan 21, 2014
1 parent b797917 commit 072b42f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Pipe/Environment.php
Expand Up @@ -57,6 +57,10 @@ function __construct($root = null)

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

# Override Mustache compiler with more useful Mustache to JS compiler,
# which is usable with the JST processor
$this->registerEngine('\\MetaTemplate\\Template\\MustacheJsTemplate', '.mustache');

# Register default processors
$this->registerPreProcessor('text/css', '\\Pipe\\ImportProcessor');
$this->registerPreProcessor('text/css', '\\Pipe\\DirectiveProcessor');
Expand Down

0 comments on commit 072b42f

Please sign in to comment.