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
Dotprompt always looks in prompts/ even when initialized with other directory.
(the library loads all of the prompts in the configured directory when you initialize it but thereafter if you reference a prompt that's not found it looks in the default location rather than the one you specified at initialization)
To Reproduce
Put a hello.prompt file in prompts/
Initialize plugin, specifying a different dir: dotprompt({ dir: './prompts2' })
Describe the bug
Dotprompt always looks in
prompts/
even when initialized with other directory.(the library loads all of the prompts in the configured directory when you initialize it but thereafter if you reference a prompt that's not found it looks in the default location rather than the one you specified at initialization)
To Reproduce
hello.prompt
file inprompts/
dotprompt({ dir: './prompts2' })
promptRef('hello')
. It also succeeds.Expected behavior
3 and 4 should be errors. 5 is expected.
Screenshots
If applicable, add screenshots to help explain your problem.
Runtime (please complete the following information):
** Node version
node --version
at paste hereAdditional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: