Ver Fonte

implement default behavior for the partials_loader

Matt DeClaire há 12 anos atrás
pai
commit
8053ce7093
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      src/Mustache/Engine.php

+ 2 - 0
src/Mustache/Engine.php

@@ -113,6 +113,8 @@ class Mustache_Engine
 
         if (isset($options['partials_loader'])) {
             $this->setPartialsLoader($options['partials_loader']);
+        } else if (isset($options['loader'])) {
+            $this->setPartialsLoader($options['loader']);
         }
 
         if (isset($options['partials'])) {