You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Provide custom loadfilecontents and loadfilebuffer options in Template.fromDirectory()
Use Case
Loading template directories from a virtual file system where fs module cannot be used.
Example: VSCode-Web
Possible Solution
The options dictionary can accept option parameter loadFileContents and loadFileBuffer to alter the way in which file content is read from memory.
Context
A simple fix to this can be help us load Templates in VSCode Extension where only file reading logic is to be altered without altering the way in which the contents of these files are used to create the Template object.