1. Updated to current transitional plugin system (moving target!). Much of this was modified from the package.js in the builtin Meteor templating module.
2. Now uses jade and StringScanner as native npm modules instead of linking to their github
3. Moved parsing code into compile-jade-handlebars.js
Must of the StringScanner code is unchanged from
the original, however for some reason I had to
fix some of the regular expressions used in
trying to find beginning space, basically it was
using /(\ *)(.*)\n+/ which failed in case of
tabs. It also fails on the last line if there is
no new line. It also now checks the return of
scan now so it doesn't just die on errors.
Currently it uses console.log to log the file
it is failing on now, but this should probably
throw an exception and give the line number the
issue is on. Will revisit and clean this up
later but for now it is working for me.
copy over current html_scanner code from the builtin templating plugin. dunno, maybe Meteor devs should consider exposing this for other templating plugins to use so it's not copied everywhere