> For the complete documentation index, see [llms.txt](https://docs.wem.io/platform/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wem.io/platform/wemreference/wmt/file-structure.md).

# File Structure

The design template has the following minimal structure:

```
/my-design-template
    /scripts
        ... WEM Runtime Scripts ...
    /styles
        ... Default Styles ...
        /default.less
    /mastertemplate.bwmt
    /thumbnail.png
```

### Design Template

`/mastertemplate.bwmt`

This file serves as the main entry point of the design template and is **mandatory** for the WEM runtime to function correctly. It is similar to an `index.html` file found in many websites.

### Thumbnail

`/thumbnail.png`

This is an optional image used in the Modeler to preview the design template.

### Scripts

The `/scripts` folder is reserved for the WEM runtime. While you can use this folder for your own scripts, it cannot be guaranteed that your files will not be overwritten when you push changes to the design template.

For example, if you have your own `/scripts/bootstrap.min.js`, it will be overwritten if you include `<% Uses Bootstrap latest %>` in your design template. This behavior may change in the future.

### Styling

The `/styles` folder is also reserved for the WEM runtime. You can add files to this folder, but it cannot be guaranteed that your files will not be overwritten when you push changes to the design template.

The `/styles/default.less` file serves as the main entry point for the stylesheet of the WEM application, but it can be overwritten.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.wem.io/platform/wemreference/wmt/file-structure.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.
