RandomEtc / ejs-locals

Express 3.x layout, partial and block template functions for the EJS template engine.
298 stars 63 forks source link

Fix typo #11

Closed cedriclombardot closed 11 years ago

RandomEtc commented 11 years ago

Can you confirm that node still finds the correct file in the example? I wasn't aware that require worked that way, but if it does then I'll merge this change. Thanks!

cedriclombardot commented 11 years ago

Like for express depens if you already install in global or with a package.json in the example or if you want to use with the cloned version

loktar00 commented 11 years ago

This fixed the issue I was having with it.

RandomEtc commented 11 years ago

Thanks for this / sorry for the delay. I fixed the README in 0db4e005ee5bf6086f5cf9490bfdf4b5f48bad8e as you suggested, but I left the example app the same in the repository. It's my intention that you would do:

git@github.com:RandomEtc/ejs-locals.git
cd ejs-locals
npm install
cd example
node app.js

If I change the require as you suggested then the app doesn't work this way. Please clarify if you think I'm mistaken.