FileSystemLoader
FileSystemLoader is a class commonly found in templating engines, particularly those used in web development. Its primary function is to locate and load template files from the local file system. When a templating engine needs to render a template, it typically delegates the task of finding the correct file to a loader. The FileSystemLoader is responsible for interpreting the template name provided and translating it into a path on the server's disk.
This loader typically takes a root directory or a list of directories as configuration. When a template
The FileSystemLoader is a fundamental component for managing template organization and accessibility. It separates the logic