jeremyworboys / node-kit

Node based compiler for .kit files.
MIT License
15 stars 8 forks source link

Added multi-line variable support #7

Closed aral closed 10 years ago

aral commented 10 years ago

Was breaking on multi-line variables (only the first line would be included). This was a problem for properly formatted HTML-content in variables — something I use quite often with partials. Fixed by adding support for newlines in the RegExp (since JS doesn’t have ‘make dot match newlines’ option for RegExps).