# Templates used when building and rendering docs.microsoft.com
Content on Docs goes through a build process, and is then served from our rendering layer. At both stages, templates are used to control the output.
Revisiting the overview diagram from an earlier article:

During the build stage, we create the 'content' area of the image below (shown in green, essentially the body of the article and nothing outside of that).
To create that content area, we take the source document (markdown in many cases, but it could also be YML for more structured data like our API reference) and run it through a template process at build time. This is done with a mix of JavaScript to manipulate the incoming data model, and 'nustache' style templates. For example, to create [this page in our sample browser](https://docs.microsoft.com/en-us/samples/azure-samples/netappfiles-python-smb-sdk-sample/azure-netappfiles-smb-sdk-sample-for-python/), we have this template
```html
```
This template is only for the content though and does nothing to wrap the page in the 'chrome' such as the header, table of contents along the left side, etc. That work happens later, not at build time, because it needs to know the user's desired language as represented by the locale in the URL (the en-us in a url like `https://docs.microsoft.com/en-us/foo`). We **could** proactively build all possible combinations of chrome locale and content locale at build time, but it would increase that process by a massive level. Instead, at the server, when a request comes in for a given page with a given locale, we fetch the content and then execute a Liquid template based process to wrap it with our header/footer/etc chrome. Everything green in the image below.
This is still not **user specific**, it is **URL specific**, so that we can cache the output of the server for anyone who might request that URL. The Liquid templates are quite large and complex, handling all the details related to the current context of the request. What locale is requested, what locale the content is in, what site this request is for (we use these templates for more than just docs.microsoft.com), and more. Given their size, I'm only including a small snippet below.
```html