# Virtual Assets

An applet's manifest can declare virtual assets which are exposed via a known URL but actually combine a series of other assets into a single file. This is useful if you want to break up large JavaScript files but expose them as one file.

To define a virtual asset, use the following registration for the asset in the manifest.xml file:

```markup
<asset name="js/controllers.js" mimeType="text/javascript">
    <virtual>
      <include>js/controllers/.*\.js</include>
    </virtual>
  </asset>
```

In this example, when the browser requests http\://\<host>/\<applet-id>/js/controllers.js the contents of the applet in js/controllers/\*.js will be rendered out as a single JavaScript file.


---

# 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://help.santesuite.org/developers/applets/assets/virtual-assets.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.
