Create a form page for sending out the standings #233

Closed
opened 2025-09-09 16:24:42 +02:00 by Ghost · 1 comment
Ghost commented 2025-09-09 16:24:42 +02:00 (Migrated from codeberg.org)
No description provided.
Owner

Note on the placeholder token, so it gets picked before the form page is built.

The compose box needs a token that expands to the rendered standings table, e.g.

Here's where we stand after week 3:

{{standings}}

Get your picks in.

Do not use [[standings]] for this. That's Obsidian wikilink syntax -- it collides with any future wikilink support in the markdown pipeline, and it fights muscle memory when composing. Use {{standings}} (or :::standings), which isn't real markdown in any flavor.

Substitution happens after the markdown -> HTML conversion, against the fragment rendered by the Starlette template env (so url_for resolves to absolute URLs). Same mechanism extends to {{picks}} / {{awards}} later, and the compose page can list the available tokens next to the textarea.

Note on the placeholder token, so it gets picked before the form page is built. The compose box needs a token that expands to the rendered standings table, e.g. ``` Here's where we stand after week 3: {{standings}} Get your picks in. ``` Do **not** use `[[standings]]` for this. That's Obsidian wikilink syntax -- it collides with any future wikilink support in the markdown pipeline, and it fights muscle memory when composing. Use `{{standings}}` (or `:::standings`), which isn't real markdown in any flavor. Substitution happens after the markdown -> HTML conversion, against the fragment rendered by the Starlette template env (so `url_for` resolves to absolute URLs). Same mechanism extends to `{{picks}}` / `{{awards}}` later, and the compose page can list the available tokens next to the textarea.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
johnsturgeon/tgfp-web#233
No description provided.