docpad-archive / docpad-plugin-jade

Adds support for the Jade templating engine to DocPad.
Other
17 stars 8 forks source link

Unexpected token ILLEGAL #10

Closed AGresvig closed 11 years ago

AGresvig commented 11 years ago

Thanks for a great platform (and plugin)

But I'm really having a hard time converting my HTML5 Boilerplate based Eco templates to Jade. The stack-traces make little sense and make debugging hard - I've had to resort to adding log-statements at various points in the parser codebase to see what the failing expression was etc.

Case in point: I'm getting an error "Unexpected token ILLEGAL" and a pointer to the last line in my default template. I initially thought it had to do with line endings (LF/CRLF) but my template is Unix encoded and all seems to be in order.

Any help getting around this is appreciated. I'm staying away from Jade templates until I find a better way to debug them.

Thanks!

balupton commented 11 years ago

Yeah, unfortunately the error we provide is just the error that jade provides. Perhaps reposting this on the jade issue tracker that they need to provide better error messages would be the way to go. Definitely wish we could do more here.

AGresvig commented 11 years ago

Makes sense. Thanks!