javascript - Is it possible to send the result of one mustache template to another? -


i working mustache , atomic design patterns.

i have component called card looks little bit this

<div class="card {{ type }}">     <h2 class="card-title">         {{ title }}     </h2>     <div class="card-content">         {{{ content }}}     </div> </div> 

i want use in other templates , send result template content. this:

{{> molecules-card(title: 'title', content: {{> my-content-template }} ) }} 

the closes got is:

{{> molecules-card(title: 'title', content: '<div>long , nasty string of html</div>' ) }} 


Comments

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -