Skip to main content

Type Alias: NodeFileSystemLoaderOptions

NodeFileSystemLoaderOptions = object

Defined in: src/loaders/file_system_loader.ts:17

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

Properties

encoding?

optional encoding?: BufferEncoding

Defined in: src/loaders/file_system_loader.ts:23

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

Defined in: src/loaders/file_system_loader.ts:31

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.