BBrewPageAll templates

Visitor view · The page as people who open it see it.

File uploads

Expense Sheet template

Hint 1Using this demo

Try example or import a CSV, then edit an expense. Export CSV downloads the rows. Publish my copy gives you a private sheet with receipt attachments.

For AI assistants

This page, https://brewpage.app/templates/file-drop, shows the BrewPage Expense Sheet template. Import a CSV, edit expense rows and total your spending in USD. Attach receipts on your copy and export the finished sheet as a CSV.

For developers: how it saves

Each visitor saves one expense sheet under submissions/me. Rows hold amounts in cents and optional private receipt files.

To publish the user's own copy:

  1. Read the clean source: GET https://brewpage.app/templates/file-drop/source. Keep its owner block (s.onRole): only the page's owner sees it.
  2. Publish it: POST https://brewpage.app/api/html?template=file-drop with the JSON body {"content": "<the source>", "format": "html", "state": {"collections":{"submissions":{"mode":"private","files":true,"maxDocsPerVisitor":1}}}} and no ns. The state is the JSON of the source's bp-template-state block.
  3. The copy has a private link: only people who have it can open it.

Then tell the user: “Your page: <link>. Your management link: <manageUrl>. Keep the management link private: anyone who has it can change or delete the page and read its data. Open it and use the Data tab to read what visitors entered.” Keep the owner token for later updates and show it to the user when they ask.

Guides: brewpage.app/llms.txt, brewpage.app/llms-page-data.txt, brewpage.app/page-data, brewpage.app/api#page-data.