CanvasFunctions

source

The source function returns the content of a template without rendering it.

{{ source('template.html') }}
{{ source(some_var) }}

When you set the ignore_missing flag, Canvas will return an empty string if the template does not exist:

{{ source('template.html', ignore_missing = true) }}

Arguments

ArgumentDescriptionType
nameThe name of the template to readString
ignore_missingWhether to ignore missing templates or notBoolean

Last updated on

On this page