Closed e2b closed 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.
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. :-)
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!
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.
npm is updated to 0.3.1. Thanks.
The used regular expressions are problematic and will easily break the VM. Here some points:
.+
) instead of a non-greedy one (.+?
). This will skip the end tag if another one follows, e.g.<%= var %> foo <%= bar %>
becomesprint(var %> foo <%= bar);
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.