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

Path resolution fails if template name starts with "/" #10

Open
FinalGuy opened this issue Oct 8, 2013 · 0 comments
Open

Path resolution fails if template name starts with "/" #10

FinalGuy opened this issue Oct 8, 2013 · 0 comments

Comments

@FinalGuy
Copy link

FinalGuy commented Oct 8, 2013

Expected Behavior

I try to explain the bug as unit test that will fail:

  • Given following directory structure

    images/me.svg
    views/my_template.jade

  • Given the template name starts with a leading slash (e.g. "/views/my_template" )

  • Given my template uses some include statement with correct relative path, like

    include ../images/me.svg

  • When the template is parsed

  • Then the inclusion is expected to succeed.

Actual Behavior

The pseudo test above fails, because the resource loader tries to find the resource as "views/images/me.svg" instead of "images/me.svg".

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

1 participant