You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
renderer.Render("Name: {{ReplaceString 'XXX' Name ''}}", new
{
Name = "JohnXXX"
});
Then result is correct: Name: John
In my assumption stubble helper does not support more than one constant string as an argument in a row currently. It will be great when stubble helper will be support it because this functionality would be useful for us.
Thanks, Michal
The text was updated successfully, but these errors were encountered:
Thanks for reporting this. It was actually a one line fix in the end but we added tests around this area to make sure we don't regress. The fix is now on nuget in release 1.1.3
Thanks for using Stubble and let us know if you have any issues!
Hi guys,
I have a problem with my custom Helper if i using more than one constant string as an argument in a row then my helper is not invoked.
Helper register
Render template
Basically I want to replace XXX with empty string. But the result is just
Name:
So there are something wrong.But when I changed the order of the arguments in the template then my custom helper working correctly.
Helper register
Render template
Then result is correct:
Name: John
In my assumption stubble helper does not support more than one constant string as an argument in a row currently. It will be great when stubble helper will be support it because this functionality would be useful for us.
Thanks, Michal
The text was updated successfully, but these errors were encountered: