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

Re : Recursive mustache

$
0
0
I just found out that when I takes out the recursive call, it works. I don't really understand, why. http://jsfiddle.net/BigZolo/9XgV8/

  1. <script id='recursive' type='text/mustache'>
  2.     <li>{{title}}
  3.     {{#children}}
  4.     <ul>
  5.         {{title}} // removed the recursive call 
  6.     </ul>
  7.     {{/children}}
  8.  </li>
  9. </script>

Viewing all articles
Browse latest Browse all 3491

Trending Articles