Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to supply the filePath argument in the getTemplate(fileName, options) method? #282

Open
jeyendranbalakrishnan opened this issue May 2, 2020 · 2 comments

Comments

@jeyendranbalakrishnan
Copy link

What is the correct file path specification for the filePath argument in the getTemplate(fileName, options) method?
I have a template file at: ${PROJECT_ROOT}/views/template.handlebars.
What should filePath be?

  1. ${PROJECT_ROOT}/views/template.handlebars
  2. views/template.handlebars
  3. template.handlebars
  4. template
  5. views/template

Thanks!

@jeyendranbalakrishnan
Copy link
Author

Actually it turns out that render(filePath, context, options) is a better method for my purposes.
But I have the same question about the filePath parameter for this method.

@UziTech
Copy link

UziTech commented May 2, 2020

The path can be an absolute path or a path relative to the current working directory.

All new development of express-handlebars is done on a new repo express-handlebars/express-handlebars. Please create an issue there if this is still an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants