KScript ドキュメント
JA

言語

英語から自動翻訳されています。原文は英語です。

Web ページ

ルーティング

URLが提供するファイルは、そのパスから決まります。/peopleはpeople.html、people.md、people/index.htmlを提供します。角括弧で囲まれたフォルダー名またはファイル名は任意の値に一致するため、/people/42はpeople/[id].htmlに一致し、その値は$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