ollym / parrot

A lightning fast and lightweight templating engine for Node.js
38 stars 7 forks source link

Several Issues #6

Closed JacobEvelyn closed 11 years ago

JacobEvelyn commented 12 years ago

I can't get Parrot working. First, simple examples (as in the Readme) give me the following error: SyntaxError: Invalid flags supplied to RegExp constructor 'g,m'

Once I changed all of the RegExp constructors to use strings ("gm" or "gmi"), I got this error: TypeError: Cannot call method 'runInNewContext' of undefined at Object.render (/Users/jacobevelyn/node_modules/parrot/index.js:165:9)

Seems like some big problems are going on here.

jbrumwell commented 12 years ago

For the second change;

Script = process.binding('evals').Script,

to

Script = process.binding('evals').NodeScript,

e2b commented 11 years ago

This was fixed in #5.