Fixed or rendered
render is either a list of blocks or a function that returns one.
A list is fixed in code. It ships with your definitions, opens instantly and works while your app is offline, which suits pages made of Pult’s own blocks: counts, item lists, inbox charts, flags and buttons.
A function runs in your app each time someone opens the page, so it can show anything your app knows. It receives params and the actor looking at it. Like every request from Pult, it’s signed and goes over your app’s connection.
Parameters
params turns the top of the page into a row of filters: a choice for each enum or boolean, a text box for strings and numbers. The values live in the address, so a filtered page can be shared as a link, and arrive in render validated and typed. Fields with a default start on it.
Home
home is the page everyone lands on:
Who sees a page
Everyone sees home. Other pages are granted in roles withpages, and admins see all of them. Blocks on a page still follow the viewer’s role: counts and lists for inboxes they can’t see, and buttons for actions they can’t run, are left out.