# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.hello-lisa.com/developers/widgets/configuration-options/template.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
