Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4827

Block component templates at runtime

$
0
0

@rohmann wrote:

For a very particular use case, I'd like to be able to do this:

{{#runtime-markup markup=htmlString}}
  inner markup
{{/runtime-markup}}

Where htmlString is something like <div class="xyz>{{yield}}</div> resulting in output similar to

<div class="xyz>
  inner markup
</div>

The idea is that my inner content stays the same, but I can arbitrarily setup wrapping markup using a string. Thoughts?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4827

Trending Articles