mustache icon indicating copy to clipboard operation
mustache copied to clipboard

Lambda sections are not executed

Open teomat opened this issue 13 years ago • 1 comments

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.

teomat avatar Jul 24 '11 19:07 teomat

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.

drbawb avatar Aug 17 '12 14:08 drbawb