Is it possible to nest helpers inside the options hash with handlebars?

后端 未结 2 1794
伪装坚强ぢ
伪装坚强ぢ 2020-12-24 11:13

For instance, is there a way to nest my \"i18n\" helper inside another helper\'s hash variable?

{{view \"SearchView\" placeholder=\"{{t \'s         


        
2条回答
  •  长发绾君心
    2020-12-24 11:43

    Update: Handlebars now supports subexpressions, so you can just do:

    {{view "SearchView" (t 'search.root')}}
    

提交回复
热议问题