hoisie / mustache

The mustache template language in Go
MIT License
1.11k stars 225 forks source link

Lambda sections are not executed #16

Open teomat opened 13 years ago

teomat commented 13 years ago

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.

drbawb commented 12 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.