BBrewPageAll templates

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

Movie club template: a group film list with ratings

Hint 1How to hide these hints

These notes explain the page; they are not part of the template. Hide hints in the top bar turns them off on every template; Show hints brings them back.

Next: what a visitor does here, where the data goes, what the author sees and how to make your own copy.

For AI assistants

This page, https://brewpage.app/templates/movie-club, shows the BrewPage Movie club template: members mark films seen and rate them 1-10; on a copy everyone sees who saw each film and the group rating.

For developers: how it saves

A copy stores one shared list, marks, one entry per member (key me). Later changes: edit only the films block, keep ids, update this same page.

To publish the user's own copy:

  1. Read the clean source: GET https://brewpage.app/templates/movie-club/source. Keep its owner block (s.onRole): only the page's owner sees it.
  2. Publish it: POST https://brewpage.app/api/html?template=movie-club with the JSON body {"content": "<the source>", "format": "html", "state": {"collections":{"marks":{"mode":"shared","maxDocsPerVisitor":1,"choices":{"tick":["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31"]}}}}} 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.