Skip to main content

Type Alias: NodeFileSystemLoaderOptions

NodeFileSystemLoaderOptions: object

Options for a file system template loader in the NodeJS runtime.

Type declaration

encoding?

optional encoding: BufferEncoding

The encoding to use when reading from a template file. All template files in the search path are assumed to have the same encoding. Defaults to utf8.

fileExtension?

optional fileExtension: string

A default file extension to apply if none is given. For example, to allow template authors to write {% include 'page' %} instead of {% include 'page.liquid' %}, set fileExtension to '.liquid'. Defaults to the empty string.

Defined in

src/builtin/loaders/file_system_loader.ts:16