Variables
A variable looks up a value from the front-matter of a file in which variable is used. If you wanted to simply display a variable, you would do:
---
name: Ajay
---
My name is {{ name }}
If a value is undefined or null, nothing is displayed. The same behavior occurs when referencing undefined or null objects.
Global Built-in Variables
request
: It will display current url route to screen.url_for
: It is always prefered to use this function for adding routes or path to static files.version
: It will display current latest version to screen.
Last Updated: 16/01/2021 Next Article