Forráskód Böngészése

Add `delimiters` option docs.

Justin Hileman 8 éve
szülő
commit
31523441e1
1 módosított fájl, 8 hozzáadás és 0 törlés
  1. 8 0
      src/Mustache/Engine.php

+ 8 - 0
src/Mustache/Engine.php

@@ -82,6 +82,14 @@ class Mustache_Engine
      *         // sections are often too dynamic to benefit from caching.
      *         'cache_lambda_templates' => true,
      *
+     *         // Customize the tag delimiters used by this engine instance. Note that overriding here changes the
+     *         // delimiters used to parse all templates and partials loaded by this instance. To override just for a
+     *         // single template, use an inline "change delimiters" tag at the start of the template file:
+     *         //
+     *         //     {{=<% %>=}}
+     *         //
+     *         'delimiters' => '<% %>',
+     *
      *         // A Mustache template loader instance. Uses a StringLoader if not specified.
      *         'loader' => new Mustache_Loader_FilesystemLoader(dirname(__FILE__).'/views'),
      *