Docs
API Reference
File Conventions
[name].router.js

[name].router.js

In Rasengan.js, to create a router, you have to create a file that follow the following name pattern:

[name].router.js

A router is a set of pages grouped under the same layout that share it.

Example

Based on the convention, we have juste replace the [name] by app in the convention name and we got app.router.js.

It's required to have your main router inside the app/app.router.js page, because it's considered as an entry point.

Logo Image