Explorar el Código

implement default behavior for the partials_loader

Matt DeClaire hace 12 años
padre
commit
8053ce7093
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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'])) {