Each page's template set is assembled in its own place, and the lint and tests assemble stand-ins #190

Closed
opened 2026-10-06 21:25:47 +00:00 by cgalo5758 · 1 comment
Owner

About eleven handlers build their own template set, the project lint builds one with stand-in functions, and more than twenty test files build more. A test can pass with functions the console does not use. When a template calls a function the lint lacks, the lint prints a parse error, skips that template's link and target checks, and passes.

Done when: one constructor per surface is called by the console, the lint and the tests, and an unparsable template fails the lint.

About eleven handlers build their own template set, the project lint builds one with stand-in functions, and more than twenty test files build more. A test can pass with functions the console does not use. When a template calls a function the lint lacks, the lint prints a parse error, skips that template's link and target checks, and passes. Done when: one constructor per surface is called by the console, the lint and the tests, and an unparsable template fails the lint.
cgalo5758 added this to the Public launch milestone 2026-10-06 21:25:47 +00:00
cgalo5758 added the
kind
debt
area/operator-uiarea/testing
labels 2026-10-06 21:25:47 +00:00
Author
Owner

Each surface's template set now comes from one constructor in internal/web, MemberTemplates or OperatorTemplates. The console's handlers, the project lint and the render tests all call them, so a template that calls a function its surface lacks fails the lint as it fails boot, and no test builds a set with stand-in functions. The lint also fails on a template file no surface parses.

Each surface's template set now comes from one constructor in `internal/web`, `MemberTemplates` or `OperatorTemplates`. The console's handlers, the project lint and the render tests all call them, so a template that calls a function its surface lacks fails the lint as it fails boot, and no test builds a set with stand-in functions. The lint also fails on a template file no surface parses.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: wiki-cafe/member-console#190