Show context on no template exeption
veged opened this issue · 1 comments
veged commented
Right now:
$xjst
template(bla) return 'bla'
(function(exports) {
function $e() {
throw new Error;
return;
}
exports.apply = apply;
function apply() {
if (!bla === false) {
return "bla";
return;
} else {
return $e.call(this);
}
}
return exports;
})(typeof exports === "undefined" ? {} : exports);
It will be better if we throw
error with current context (for debug purposes).
\cc @dosyara
indutny commented
Fixed.