vol4ok / hogan-express

Mustache template engine for express 3.x. Support partials and layout
MIT License
138 stars 31 forks source link

Error when using arrays with lambdas #24

Open sjmarshy opened 10 years ago

sjmarshy commented 10 years ago

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.

tandrewnichols commented 7 years ago

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.