> For the complete documentation index, see [llms.txt](https://avirts-organization.gitbook.io/rocketcode-framework-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://avirts-organization.gitbook.io/rocketcode-framework-documentation/express/how-to-make-new-template-and-linking-them-with-router.md).

# How to make new template and linking them with router

📁 Crete file `index.html`  and make default (EMET)  Use "!!!" press enter

## 🔌 Connecting&#x20;

{% code title="routers/router.js" overflow="wrap" %}

```javascript
// FRAMEWORK NECCESORY
const express = require('express');
const router = express.Router();

const fs = require('fs');
const path = require('path');

const { renderPage, getAsset, writeRaw, getJson, getRaw } = require('../RocketFramework/RocketFramework.js');
const { runPlugins } = require('../RocketFramework/plugman.js');

// Запускаем главный метод плагинов (А дальше они уже сами будут делать что им надо)
runPlugins({ router });
// FRAMEWORK NECCESORY



// Example of handling only "get" request
router.get('/', (req, res) => {
    renderPage('index.html', res); // Here we are rendering page from structure/pages
}

// or

router.get('/about', (req, res) => renderPage('about.html', res));

module.exports = router;
```

{% endcode %}

## 🔙 Previous module

{% content-ref url="/pages/e8WEYAUJaqDhnkkUTiNf" %}
[Express](/rocketcode-framework-documentation/express.md)
{% endcontent-ref %}
