Open teomat opened 13 years ago
I know this is old, but I'd really like to see this as well so I can implement filters.
EDIT OF THE EDIT: I have submitted a pull request.
You can try using my fork and report issues with it, but I believe it parses lambda's to spec. https://github.com/drbawb/mustache
I've submitted a pull request, but I'd really appreciate some feedback as I've never hacked on a parsing library before.
According to the mustache manual, when using a function/method as the value of a section it should be called when rendering the template. There are functions related to this in the code, but they are not called and I can't figure out what I'd have to change to get this to work.