I have a simple hierarchy of objects consisting of:
Category String name List childCategories;
I would like to introduce this layout using rudders in a general way, but it's hard for me to figure out how to deploy layouts. Given this layout:
<script id="categories-template" type="text/x-handlebars-template"> {{#categories}} <ul > <li> <span>{{name}}</span> <div>{{#childCategories}}{{/childCategories}}</div> </li> </ul> {{/categories}} </script>
What is the best way to reuse the existing categories template for all child categories? Do I need to register a handler? Is there an easier way?
json javascript templates
user842800
source share