Handlebars-Net / Handlebars.Net

A real .NET Handlebars engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Question] context param can be modified?

JuanOrjuelaA opened this issue · comments

Hello guys

Is there a way to modify the info from the context param?
I have a list in the context, and I want to remove some items from that list to be displayed in my template.

Hello @JuanOrjuelaA
You can access context value inside the helper using context.Value. You'd still need to cast it to a correct type though.

Awesome, thanks!