It is recommended that you use the alternative functions listed below.

file

ℹ️

Alternatives: include

file returns the file path:

{{ file('path/to/file') }}

Arguments

ArgumentDescriptionType
filepathThe path to the fileString

import

ℹ️

Alternatives: include

import returns the contents of a file:

{{ import('includes/messages.html') }}
⚠️

The import function no longer renders HTML content within the imported file.

Arguments

ArgumentDescriptionType
filepathThe path to the file, relative to the views directoryString

Copyright © 2023 Blutui.