Accessing Variables
Dot Notation
Use dot notation to access object properties within the template context, similar to JavaScript.Bracket Syntax
Bracket syntax allows access to object properties using string keys, which is useful for dynamic or complex property names.Error Handling
Accessing an undefined variable will return an empty string. For example:Examples
Accessing a Defined Variable
Alice
Accessing Nested Properties
Alice Johnson