Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text plugin broken in Jade #6

Open
mikemurray opened this issue Apr 6, 2013 · 2 comments
Open

Text plugin broken in Jade #6

mikemurray opened this issue Apr 6, 2013 · 2 comments

Comments

@mikemurray
Copy link

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
Copy link
Member

balupton commented Apr 7, 2013

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

@mikemurray
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants