Handlebars.Net
Handlebars.Net copied to clipboard
[Help] Expression evalution in custom helpers and block helpers
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)
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.