Skip to content

Text plugin broken in Jade #6

Open

Description

@mikemurray

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)

Activity

  1. balupton commented on Apr 7, 2013

    @balupton
    Member

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

  2. mikemurray commented on Apr 7, 2013

    @mikemurray
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions