Handlebars.Net icon indicating copy to clipboard operation
Handlebars.Net copied to clipboard

[Help] Expression evalution in custom helpers and block helpers

Open breenyoung opened this issue 11 years ago • 1 comments

Just wondering how I can pass in non literal properties into custom helpers and have them be evaluated against the current context and accessible in code.

{{mycustomhelper Person.Address.City}}

{{#mycustomblock Person.FirstName}} Hello world {{/mycustomblock}}

I can only seem to pass literal string into my custom helpers (double quoted)

breenyoung avatar Mar 30 '15 15:03 breenyoung

Without more detail, I don't understand what the issue is. I created a test that mimics your examples exactly, and it works as expected.

rexm avatar Mar 30 '15 22:03 rexm