Skip to content

Commit 43033cc

Browse files
Update Templates docs to clarify availability of globals dict
1 parent 8ef67b1 commit 43033cc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/guides/templates/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,7 @@ In PHP you have access to the `$CFG` object to allow access to properties. Musta
645645
```
646646

647647
The properties available on the `globals.config` object are the same as normally exposed for JavaScript; these are gathered from `get_config_for_javascript()` function in `lib/outputrequirementslib.php`.
648+
This object is only available when using client-side Mustache rendering in JavaScript; it is not added to templates rendered with the PHP Mustache engine.
648649

649650
## Core templates
650651

0 commit comments

Comments
 (0)