RandomEtc/ejs-locals

Strange behavior of include

Closed this issue · 2 comments

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.

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

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.