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
Post a Comment