storify/jade-browser — pull request #21 by marclitchfield (2013-10-12 20:05:12+00:00)
Title: Fix path related issues on windows

There are a couple of issues with jade-browser that prevent it from working properly on Windows.

The version of glob used (3.1.7) does not return matches for absolute paths that contain * wildcards on Windows. Because jade-browser gives an absolute path to glob.sync, patterns containing wildcards return no results on windows. These issues have been resolved in more recent versions of glob.

The other issue is that the template names that jade-browser generates will contain backslashes when the node server is running on windows, and the client cannot be agnostic to the server platform. By replacing backslashes with forward slashes in the template name, the client does not need to change depending on the server platform.

Both of these changes are necessary to get the unit test passing on windows.

PS Thanks for this library, it is really working out wonderfully for our project.