Making your source code ready for the internet age! Using fancy html and css, directly from your local vim expert!
var vimify = require('vimify');
vimify('x = (y) -> y', 'coffee', function(err, style, html) {
console.log('the css', style);
console.log('the markup', html);
});
All this is just a quick prototype. Here's what I think could be done in the future:
- Make the code more elegant!
- Use spawn or something to avoid using temporary files.
- The html parsing is a little bit ugly.
- Add more detailed tests.
- Have it work on windows.
Johann Philipp Strathausen [email protected]