mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-17 21:07:18 +00:00
Merge branch '2.x' into 3.x
* 2.x: Fix a typo in api.rst Fix a typo advanced.rst
This commit is contained in:
+1
-1
@@ -527,7 +527,7 @@ The ``Project_Set_Node`` class itself is quite short::
|
||||
}
|
||||
}
|
||||
|
||||
The compiler implements a fluid interface and provides methods that helps the
|
||||
The compiler implements a fluid interface and provides methods that help the
|
||||
developer generate beautiful and readable PHP code:
|
||||
|
||||
* ``subcompile()``: Compiles a node.
|
||||
|
||||
+1
-1
@@ -177,7 +177,7 @@ Namespaced templates can be accessed via the special
|
||||
|
||||
$twig->render('@admin/index.html', []);
|
||||
|
||||
``\Twig\Loader\FilesystemLoader`` support absolute and relative paths. Using relative
|
||||
``\Twig\Loader\FilesystemLoader`` supports absolute and relative paths. Using relative
|
||||
paths is preferred as it makes the cache keys independent of the project root
|
||||
directory (for instance, it allows warming the cache from a build server where
|
||||
the directory might be different from the one used on production servers)::
|
||||
|
||||
Reference in New Issue
Block a user