eof
Extract template from multi-line comment inside function body.
I use it in tests when you don't want to make templates outside of the test. So it looks more readable than an array of strings or multi-line strings (I believe in it) and simple then outside file.
Enjoy testing!
Getting Started
Install the module with: npm install eof
var eof = ; eof;
Examples
Extract simple text template
var eof = ; eof;
Extract javascript template. And format it throught js-beautify
var eof = ; eof;
You can look at test directory for live example
License
Copyright (c) 2013 Maksim Ryzhikov
Licensed under the MIT license.