RandomEtc / ejs-locals

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

Strange behavior of include #9

Closed dmitry-solomadin closed 12 years ago

dmitry-solomadin commented 12 years ago

When I use inside of template like this:

include('shared/scripts')

and then inside the same template call:

include('someTemplate')

I get error message saying that it cannot find someTemplate inside shared folder.

This is strange that it is trying to lookup relative to previous include.

RandomEtc commented 12 years ago

Can you post a fuller example and help me understand how this differs from #10? Thanks!

RandomEtc commented 12 years ago

I have added some tests in v0.2.1 for include() to test calling multiple times and using relative paths to find templates. I wasn't able to recreate the error. Closing this but please re-open if it's still a problem.