hogan-express icon indicating copy to clipboard operation
hogan-express copied to clipboard

Error when using arrays with lambdas

Open sjmarshy opened this issue 10 years ago • 1 comments

If I do something like

{{#myArray}}
  {{#lambdas.className}}{{.}}{{/lambdas.className}}
  {{#lambdas.className}}Test This{{/lambdas.className}}
{{/myArray}}

with myArray being ['First Element', 'Second Element']

then the output will be:

test-this
test-this

essentially, it doesn't seem to work with the {{.}} tag, but works with other tags and plain text.

sjmarshy avatar Apr 30 '14 15:04 sjmarshy

Hey @sjmarshy, this lib seems not be supported anymore. I migrated it here (published as hogan-xpress): https://github.com/tandrewnichols/hogan-xpress. You can check to see if your issue still exists (it might . . . although I did implement some fixes for lambdas) and open a new issue there if so.

tandrewnichols avatar Jul 18 '17 00:07 tandrewnichols