3 ms·
Paste the code into here if you’re having trouble following: http://coffeescript.org/#try:%7BliftAll%7D%20%3D%20require%20%22when%2Fnode%22%0A%7Bcall%7D%20%3D%2
by jacobolus 11y ago
Paste the code into here if you’re having trouble following:
http://coffeescript.org/#try:%7BliftAll%7D%20%3D%20require%20%22when%2Fnode%22%0A%7Bcall%7D%20%3D%20require%20%22when%2Fgenerator%22%0A%7BreadFile%2C%20writeFile%7D%20%3D%20(liftAll%20require%20%22fs%22)%0Amarked%20%3D%20require%20%22marked%22%0A%0Acall%20-%3E%0A%20%20try%0A%20%20%20%20buffer%20%3D%20yield%20readFile%20%22my-blog-post.md%22%0A%20%20%20%20html%20%3D%20marked%20buffer.toString()%0A%20%20%20%20yield%20writeFile%20%22my-blog-post.html%22%2C%20html%0A%20%20catch%20error%0A%20%20%20%20console.log%20%22%23%7Berror%7D%22 http://coffeescript.org/#try:%7BliftAll%7D%20%3D%20require%2...