PhoenixKitWeb.PagesController (phoenix_kit v1.7.33)

Copy Markdown View Source

Summary

Functions

Renders a public page from the pages directory.

Functions

show(conn, map)

Renders a public page from the pages directory.

Only renders pages with status "published". Draft and archived pages fall back to the configured not-found behaviour. When the "Handle 404s in Pages" setting is disabled, requests are handed back to the parent router so the host application can keep its existing 404 pipeline.

Path examples: /pages/test2 -> renders test2.md (if published) /pages/blog/hello -> renders blog/hello.md (if published) /test -> handled by the catch-all route and mapped to /test.md