Haml-js breaks when using non-unix (LF) line endings in templates. For example, if you're writing on windows you'll end up with either CR or CRLF, resulting in \r or \r\n in the template. Currently, Haml-js is splitting the templates on \n, so only the very last line of a template is evaluated.
A fix is to replace all \r or \r\n with \n BEFORE splitting.
Haml-js breaks when using non-unix (LF) line endings in templates. For example, if you're writing on windows you'll end up with either CR or CRLF, resulting in \r or \r\n in the template. Currently, Haml-js is splitting the templates on \n, so only the very last line of a template is evaluated.
A fix is to replace all \r or \r\n with \n BEFORE splitting.