Routing overview

Note that this documentation is related to the @coffeekraken/s-frontend-server and @coffeekraken/s-view-renderer packages.

Coffeekraken uses simple routing strategy.

  • Create a hello.ts file into the src/pages/hello folder
  • Fill your file like so:
  • Create your view hello.twig (blade is also supported) unto the src/views/hello folder
  • Your page will be available under /hello url!

You can create nested folders to generate nested urls.

Custom slug

Obviously, you can specify a custom slug for your page. Here's how:

Views

Coffeekraken has a built-in server that support multiple views types like:

These views are rendered using native PHP libraries through the @coffeekraken/s-view-renderer package.

For more information about the @coffeekraken/s-view-renderer, please check his own documentation.

Bugs
are not our friends...

Don't hesitate to declare an issue if something does not works as expected.

Declare my issue on Github Talk about it on Discord

The more we are,
the stronger we become.

Don't hesitate to tell some words to you friends about us. The goal is to became more and more each days to help each others...

Support us on Patreon! Share on Facebook! Make a tweet!

The more we are,
the stronger we become.

Don't be afraid to join us on Discord.

Join us on discord!

We love,
Open source!

All of our codebase can be found on Github. We hope that you may contribute to help us make our tools even better!

Discover our codebase!

Welcome on