> For the complete documentation index, see [llms.txt](https://docs.hello-lisa.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hello-lisa.com/developers/widgets/configuration-options/template.md).

# Template

The optional template option sets the template being used for rendering the library. It accepts a string value.

```
/*
 * A very basic usage example, that renders a nested list of each section's shows,
 * each with its formatted date and title.
 */
window.LiSA.library.configs.push({
  template: `
    {{#with sections}}
      <ul>
        {{#each .}}
          {{#with items}}
            <li>
              <ul>
                {{#each .}}
                  <li class="lisa__show" data-lisa-show-id="{{id}}">
                    <a class="lisa__show-cta-play">
                      {{date}} — {{title}}
                    </a>
                  </li>
                {{/each}}
              </ul>
            </li>
          {{/with}}
        {{/each}}
      </ul>
    {{/with}}
  `,
});
```

Please see Template and Customisations for more information on the LiSA Library default template and how to provide your own library template.
