docpad-archive / docpad-plugin-jade

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

Text plugin broken in Jade #6

Open mikemurray opened 11 years ago

mikemurray commented 11 years ago

docpad: 6.30.0 docpad-plugin-jade: 2.3.1 node: 0.8.14 os: OSX 10.8.3

Doing the following in my jade template works:

:t(render="markdown")
    here is some *markdown*

But it breaks when I add more content under the template helper:

:t(render="markdown")
    here is some *markdown*

p More HTML

This is the error I get:

error: An error occured:
SyntaxError: Unexpected token ILLEGAL
    at Object.Function (unknown source)
    at Object.exports.compile (/Users/mikemurray/Desktop/mikemurray.me/node_modules/docpad-plugin-jade/node_modules/jade/lib/jade.js:176:8)
    at JadePlugin.module.exports.JadePlugin.render (/Users/mikemurray/Desktop/mikemurray.me/node_modules/docpad-plugin-jade/out/jade.plugin.js:77:36)
    at ambi (/usr/local/lib/node_modules/docpad/node_modules/ambi/out/lib/ambi.js:21:27)
    at DocPad.BasePlugin.bindEvents (/usr/local/lib/node_modules/docpad/out/lib/plugin.js:90:18)
    at ambi (/usr/local/lib/node_modules/docpad/node_modules/ambi/out/lib/ambi.js:21:27)
    at Task.EventEmitterEnhanced.getListenerGroup (/usr/local/lib/node_modules/docpad/node_modules/bal-util/out/lib/events.js:36:16)
    at ambi (/usr/local/lib/node_modules/docpad/node_modules/ambi/out/lib/ambi.js:21:27)
    at Task.run (/usr/local/lib/node_modules/docpad/node_modules/taskgroup/out/lib/taskgroup.js:78:19)
    at process.startup.processNextTick.process._tickCallback (node.js:244:9)
balupton commented 11 years ago

Did this use to work or is it a new issue?

mikemurray commented 11 years ago

This is the first time I've used the text plugin.