0.1.1 • Published 3 years ago
rutrn.js v0.1.1
Html router vanilla
A simple router for vanilla websites
Usage
index.js
import Router from 'rutrn';
const router = new Router('#app'); // Root element (where all the elements will be rendered)
rutrn.config.json
"paths": [
{
"path": "/",
"pathName": "home",
"htmlPath": "/index"
}
],
"config": {
"implicitHtml": true,
"implicitCss": true,
"viewsPath": "/views",
"stylesPath": "/styles"
}