raymond icon indicating copy to clipboard operation
raymond copied to clipboard

Handlebars for golang

Results 21 raymond issues
Sort by recently updated
recently updated
newest added

Hello raymond dev team, When there is **&** in the input string to `Exec()`, it returns **`&`**. When I pass the output of `Exec()` to `url.QueryEscape()` or `url.PathEscape()`, I get...

I'm considering a fork.

I need to replace a partial before Exec (usecase: in dev, want to reload a partial when I edit it) ``` raw := `{{>partial}}` tpl, _ := raymond.Parse(raw) tpl.RegisterPartial("partial", "Bloubi")...

````go raymond.RegisterHelper("addParamsToLink", func(link string, params ...string) string { // details not important return "banana" }) template, _ := raymond.Parse(`{{addParamsToLink baseLink parameter second}}`) // and a test t.Run("adds two parameters to...

added else option to equal helper

In JavaScript, all arrays have a property `length` that returns the length of an array. Mustache/Handlebars engines implemented in JS provide this method on array values and some templates originally...

how might i render a line like this? `/resource/{{{Resource}}ID}` "Resource" is the variable name so pretend its value is "pet". i'm trying to have it render to: `/resource/{petID}` However, it...

This fixes #15 in a way that is safe for existing projects that rely on the behavior of Value. This commit does not change the logic of existing functions.

Whenever I import this my go mod tells it is incompatible version. github.com/aymerick/raymond v2.0.1+incompatible