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
Currently in order to implement custom partial resolution, you need to override the function Handlebars.VM.resolvePartial. This seems a bit hacky so perhaps there should be a top-level API to support this.
Perhaps the new API could be implemented using the register pattern helpers and partials. So a consumer could provide a function that takes a name and returns a modified version. Perhaps: Handlebars.registerNameResolution((name) => name.replace('@', ''));.
The text was updated successfully, but these errors were encountered:
Currently in order to implement custom partial resolution, you need to override the function
Handlebars.VM.resolvePartial
. This seems a bit hacky so perhaps there should be a top-level API to support this.An example of the current solution:
https://jsfiddle.net/AndrewLeedham/91dacogf/4/
Perhaps the new API could be implemented using the register pattern helpers and partials. So a consumer could provide a function that takes a name and returns a modified version. Perhaps:
Handlebars.registerNameResolution((name) => name.replace('@', ''));
.The text was updated successfully, but these errors were encountered: