{{ document.get }} – Get Variable Value

Retrieves a global variable value that can be accessed in included layouts.

Basic usage:

{{ document.get }}

Usage with parameters:

{{ document.get(Variable) }}

Parameters:

  1. 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') }}") }}


What are your feelings

Leave a Reply

Updated on January 9, 2025