Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我刚开始学习苗条。在阅读了一些 sapper 文档后,我看到 sapper 使用文件名和文件夹结构进行路由,如果我想要 /blog/:article 之类的东西,可以在里面创建一个带有“blog”名称和文件“[slug].svelte”的文件夹,我如何构建更复杂的路线?示例:/blog/:article/comments/:commentId
src/routes/blog/[article]/comments/[commentId].svelte
或者
src/routes/blog/[article]/comments/[commentId]/index.svelte