Retrieves a global variable value that can be accessed in included layouts.
Basic usage:
{{ document.get }}
Usage with parameters:
{{ document.get(Variable) }}
Parameters:
Variable
(optional) – Retrieves the value of the ‘speed’ variable, which can be set in the parent layout with {{ document.set(‘speed’, 65) }}.
Example:
{{ document.get("{{ document.get('speed') }}") }}
Leave a Reply
You must be logged in to post a comment.