-
Notifications
You must be signed in to change notification settings - Fork 141
Open
Description
jade.render has the signature of an asynchronous function, using a callback instead of returning the rendered HTML. Line 297 of index.js assumes that jade.render will return HTML. My hack to get this to work is (in Coffeescript):
partials.register '.jade', (str, options) ->
tmpl = null
jade.render(str, options, (err, value) ->
throw err if err?
tmpl = value
)
return tmpl
This only works because jade.render actually renders the template synchronously so there's no race condition, but this is super ugly and could break in future versions of Jade if jade.render actual becomes asychronous.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels