visionmedia/jade — pull request #907 by samccone (2013-03-05 01:15:51+00:00)
Title: swap watchFile for a more cross platform solution

So I know this is a touchy subject but hear me out on this one.

I know many people use jade in this way, whether or not it is the 'best' way to use it is not really up to me to decide. The reality is people do.

So back to the file watcher. As it stands it uses fs.watchFile, which frankly sucks on OSX but is fine on windows. So I offer you my solution, use an external lib which deals with this complexity.

On top of this the lib monocle supports watching folders, so in the future we could add the ability to watch a directory of files.

Thanks for your time, and your awesome contributions to the OS community.