Skip to content

Commit d1cbf42

Browse files
authored
Merge pull request #719 from sayoder-aprende/patch-1
[docs] templates: Clarify availability of globals object
2 parents afff381 + 43033cc commit d1cbf42

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)