notationPagesRule top-level constant
String
const notationPagesRule
How an app or a site of several screens is written as one answer
(notationPrompt with pages): the rules, as lines of the prompt's list.
notationPages reads a text written this way.
Implementation
const String notationPagesRule =
'- An app or a site of several screens is one answer. Each screen starts at a ### line that names it (### Home, ### Transactions), '
'with its own state lines and overlays under it, before the next ###. A single UI has no ### line.\n'
'- State every screen shares (the signed-in user, the list they all show) is written once, before the first ### line. '
'go transactions shows the screen called Transactions (its name in lower case, a hyphen for a space: go cook-mode).\n'
'- A part several screens share (the app\'s navigation, a row, a stat) is a word of the app\'s own, written once: at the margin, '
'define and the word as a line would use it, each value its default (define BudgetRow "name" spent=0 limit=100); under it, '
'indented, the lines it stands for, which read its strings and parameters by name in braces ({name}, {spent}); ... on a line of '
'its own is where the lines written under a use go. A line of its lines takes an at phone block as a page\'s does: the word\'s '
'own design at that width, at every use. Every screen then calls it as any other word '
'(BudgetRow "Groceries" spent=320 limit=400). Define each word once, after the last screen, and none of the words taught here.';