Handlebars - Concat string parameters when calling partial
问题 I would like to know if it is possible to concat a variable with another string when loading a partial using Handlebars. {{partial logos this ns=../ns nsr=../nsr id=id+"something"}} I'd like to concat id+"something" and storing it into id , which would be sent to the template. I'm using a custom helper to load partials ( partial ) which merge this with the options.hash provided by handlebars. 回答1: There is a way actually. I've tried with default partial loader ">", but I hope it should work