ollym / parrot

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

Unsafe Regex #7

Closed e2b closed 11 years ago

e2b commented 11 years ago

The used regular expressions are problematic and will easily break the VM. Here some points:

I'm currently working on a commit, hopefully resolving all bugs. Pull request follows.

Also you might consider releasing a new version of parrot, since the 0.3.0 that can be downloaded via npm is outdated.

ollym commented 11 years ago

I agree with all those points, I haven't done anything with this project for... months! I'd also like to change a lot of the syntax. Currently it follows a PHP-like syntax with ERB handlers, I'd rather make a complete transition to ERB-like syntax and support CoffeeScript.

However I no longer have a use for this project so welcome any contributions.

Let me know your thoughts / concerns.

e2b commented 11 years ago

Well, I just use parrot in a small project, for separating the template from the code. Other template engines come with more complex logic and id matching etc., but I'm quite happy with inserting variables or defining simple logic inline. Therefore I've spend some time on fixing/improving this (#8). Now works like I expect it. :-)

ollym commented 11 years ago

Thanks for your hard work, I've added you as a contributor to the project to continue its legacy as you see fit as I no longer have the time to maintain it. Long live oss!

e2b commented 11 years ago

Thanks for your confidence. But you might still handle the update for the npm repository, since I'm not really aware of how it works. I just changed the version to 0.3.1 in the codebase and also created a corresponding tag.

e2b commented 11 years ago

npm is updated to 0.3.1. Thanks.