Rendering templates within helpers in handlebars

前端 未结 2 1797
不思量自难忘°
不思量自难忘° 2021-02-14 15:10

Because there seem to be no answer on this: Passing variables through handlebars partial yet, I\'m currently working on a little workaround to get this work. So, the idea is to

2条回答
  •  花落未央
    2021-02-14 15:28

    I'd just like to point out that using triple brackets eliminates the need to run any additional methods to convert to HTML. For example, when accessing the template data just use triple curly braces {{{templateData}}}, which allows you to get raw HTML.

提交回复
热议问题