bliss
bliss copied to clipboard
Map javascript ouput to template input
I really want this, but I do not really need it (yet).
To improve debugging abilities, I need to map the lines of compiled template (javascript) to the lines of the source file. So, when an error is thrown from within the template, it could contain the line number from where the error originates. Node/V8 is not helpful because it tells me it has no clue where the errors originate from.
So for now, I have to look at the compiled output of the template and figure it out... sometimes paste the output into a .js file and run it in node.
Yeah, very nice. Maybe you could provide an implementation that takes advantage from javascript source maps.
http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/
Best regards, André