KScript docs
EN

Web pages

Routing

The file a URL serves comes from its path. /people serves people.html, people.md or people/index.html. A folder or file name in brackets matches any value, so /people/42 can match people/[id].html, where the value is $request.params.id.

Files and folders whose names start with _ or ., and KScript sources (.kscript, .ks.xml and any other .xml), are never served. _404.html is used for missing pages, and may use layouts, components and live blocks like any page.

Edit this page on GitHub