A hierarchial router for RawJS projects.
npm install rawter --save
<script src="https://cdn.jsdelivr.net/npm/rawter/rawter.min.js"></script>
To get TypeScript typings, first do an npm install:
npm install rawter --save-dev
Then add the typings to the include
section of your tsconfig.json file:
{
"compilerOptions": {
},
"include": [
"node_modules/rawter/*.ts"
]
}
For a complete example, see the Rawter.cover.ts file in the repository.