mustache icon indicating copy to clipboard operation
mustache copied to clipboard

The mustache template language in Go

Results 34 mustache issues
Sort by recently updated
recently updated
newest added

I added the ability to parse data from an io.Reader, and the ability to render to an io.Writer. I also added the ability to set up custom partials before parsing....

Hello! I added a mechanism to provide a callback function which can load partials by name from some external cache. This requirement came about while I was working on a...

Ok, I synced to your current master and merged. The pull request should now contain only what's relevant to RenderTo. The diff is much cleaner. After pushing, I realized that...

Can't convince a sample program to error out, though.

In go mustache templates one of the examples showed how to retrieve Name1 function value into mustache template. But Name1 didn't have any parameters. Can I somehow use functions that...

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...

I was attempting to iterate over users ([]user), and output attributes on the struct. However, it doesn't seem to do anything once it hits {#users}. I checked the _tests on...

Mustache supposedly allows for recursive partials, which are useful for rendering nested/heirarchical data like trees and lists etc. I think this might be somewhat hard to accomplish due to the...

I hope that mustache.go take an argument for output writer. Maybe, it will be helpful for web.go ``` web.Get("/", func(ctx *web.Context) { data := GetData() tmpl.RenderFile("foobar.mustache", data, ctx) }) ```

In the main readme, it would be great if I could see a Hello World template in the Mustache language, as supported by this lib. Thanks.