Comments (4)
@nfriedly make sure you set the same extname
when registering the view engine with app.engine()
:
http://expressjs.com/api.html#app.engine
Also, be sure to use that same extname
when setting the default "view engine"
setting:
http://expressjs.com/api.html#app-settings
Setting them all to hbs
(or with the leading dot: .hbs
) will resolve your issue.
from express-handlebars.
Yep, that was it. You should probably add a note about that to the readme for newbs like me ;)
from express-handlebars.
Will do. I created Issue #17 for this.
from express-handlebars.
I'd been banging my head against the monitor on the issue for quite a while now. Thankfully, I looked into the closed bugs/documentation ides area, and noticed that it's "extname" not "extName".
I'm new to node/express, so I don't know if that's a conventional field name for file extensions, but if it's something unique to this module, you might want to point that out in the docs as other multi-word field names are camelCase. JMHO.
Anyways, awesome module - I appreciate all the work you've done!
from express-handlebars.
Related Issues (20)
- EMFILE: Too many open files when using partials
- A way to remove dynamic data and render the empty view template
- ENOENT: no such file or directory, open '...../views/pages/layouts/main.handlebars' HOT 2
- Partial could not be found HOT 2
- Broken links on README HOT 1
- Not able to render external css which has been bundled using webpack HOT 1
- Builtin helper lookup is showing missing HOT 5
- Security Contact Needed HOT 3
- Question: How precompile actually works? HOT 1
- The “path” argument must be of type string. Received undefined
- TypeError: exphbs is not a function HOT 2
- res.render from subdirectory in views HOT 2
- exphbs is not a function HOT 3
- Chinatown Kuala Lumpur
- 免费注册屈臣氏会员 - KSou
- 82 Vape Asia Taman Sri Manja
- 向设备制造商和移动运营商寻求帮助
- Update README.md as per the configuration. HOT 2
- Calling a partial inside another partial
- glob is not a function HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from express-handlebars.