Fix for issue 839 and 490 on Windows
authorDan Hersam <dan@hersam.com>
Thu, 29 Jan 2015 18:30:51 +0000 (13:30 -0500)
committerbep <bjorn.erik.pedersen@gmail.com>
Fri, 30 Jan 2015 13:18:17 +0000 (14:18 +0100)
commit523f38a9a8f27261d5d95afadfee18489a3b50c1
treee1cb797d3a66ab2f6d6e87864d7d0807b94f19ab
parentd397bc4f43e474529476c8f177e3be4fcd69d593
Fix for issue 839 and 490 on Windows

The paths were seen as changed but not static because of the backslashes in
ev.Name. Once the backslashes were added, I discovered that the JSON
sent to livereload was invalid and failed to work because it had backslashes.

Hence the code to replace the backslashes from the path to make them work
in JSON and for the URL.

With this fix, changes to a stylesheet are shown on the page, and if it's a
single file that changed, it's reflected in the browser without reloading the whole
page.
commands/hugo.go
helpers/path.go
livereload/livereload.go