Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : Pass Document Fragment To Mustache

$
0
0
Well, you could create a helper that does it.

{{frag fragName}}


can.Mustache.registerHelper("frag", function(frag){
  return function(el){
    $(el).replace(frag);
  }
})

That might work.

Viewing all articles
Browse latest Browse all 3491

Trending Articles