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

Re : Mustache {{>key}} doesn't accept partials in options

$
0
0
I'm not sure if the syntax will be the same for you (we use stealjs to load templates, and use the resulting functions directly), but we had to pass a second argument with the partials:
  1. self.element.html(
  2.       myTemplateFn({
  3.             slides: self.options.slides,
  4.             tiles: self.options.tiles
  5.       }, {
  6.             partials: {
  7.                   viewTiles: self.options.viewTiles,
  8.                   viewCarousel: self.options.viewCarousel
  9.             }
  10.       });
  11. );

Viewing all articles
Browse latest Browse all 3491

Trending Articles