Skip to content

Possible issue on Windows #1

@tlack

Description

@tlack

First, I apologize of the shitty bug report I am about to give, but it took me a while to fight through a variety of problems with Node 0.6 + Express + Dust + Dust-X (originally tried Express-dust) and I didn't keep very clear records as I went.

Regarding the dust-x part: I think there may be some kind of path name issue on Windows and the cache check in dust-x.js around line 60. I changed it to this to get it all working:

          if (!(name in dust.cache)) {
                        var dls = dust.loadSource(dust.compile(src, name));
                        dust.cache[name] = dls;
                    }

I suspect that dust.loadSource updates dust.cache, but treats the filename differently due to the backslashes in the path name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions