{{ 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

Was this helpful?

Copyright © 2024 Blutui.