JsRender Demos

To render a non-repeating template against an array, with content above or below the repeating items,
wrap the array - as render([myArray]) - and include {{for #data}} for the repeating section

Top-level layout:
$( "#movieList" ).html(
    // Pass second parameter true to choose noIteration even for arrays.
    $("#movieTemplate").render(movies, true)
);

Template:

   header
   {{for}}
      item
   {{/for}}
   footer
Nested layout:
{{include languages}}
    header
    {{for}}
        item
    {{/for}}
    footer
{{/for}}