rip747 / Mustache.cfc

{{ mustache }} for ColdFusion
http://mustache.github.com/
MIT License
46 stars 22 forks source link

OpenBlueDragon is not accepting Mustache.cfc #2

Closed DavidGOrtega closed 12 years ago

DavidGOrtega commented 12 years ago

Hi, I have used Mustache.cfc since Coldfusion, then I moved to Railo without problems but in openBD It comes with this exception.

Type Application Detail Problem occurred while parsing: render(arguments.inner, ctx) Extended Info The function render requires at most 1 argument(s).

I see in the code that the render function has the two arguments so the only idea that I could have is some parsing mistake. Any ideas?

DavidGOrtega commented 12 years ago

Ok seems that openBD needs in public functions the scope this. Replacing the 4 appearances of render for this.render the code works

DavidGOrtega commented 12 years ago

The real problem is that OPENBD has a render function in the engine. Replacing render with this.render makes mustache available for openBD.

rip747 commented 12 years ago

Reply back with the template and assigns that you are trying to parse on openbd. Also i will need to know your environment as well as the version of openbd you are using. On Apr 1, 2012 6:18 AM, "DavidGOrtega" < reply@reply.github.com> wrote:

Hi, I have used Mustache.cfc since Coldfusion, then I moved to Railo without problems but in openBD It comes with this exception.

Type Application Detail Problem occurred while parsing: render(arguments.inner, ctx) Extended Info The function render requires at most 1 argument(s).

I see in the code that the render function has the two arguments so the only idea that I could have is some parsing mistake. Any ideas?


Reply to this email directly or view it on GitHub: https://github.com/rip747/Mustache.cfc/issues/2

rip747 commented 12 years ago

excellent. i don't have openbd installed anymore, so i will have to install it to run the tests. would you be willing to make the changes and send me a pull request?