Skip to content

Cicero-core: Provide custom loadfilecontents and loadfilebuffer options in Template.fromDirectory() #745

@Ayman161803

Description

@Ayman161803

Feature Request 🛍️

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.

Would you like to work on this?

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions