Skip to content

docs: fix f-string prefix and typo in plugin-hooks example#1517

Open
vanshtaneja23 wants to merge 1 commit into
simonw:mainfrom
vanshtaneja23:docs/fix-fragment-loader-example
Open

docs: fix f-string prefix and typo in plugin-hooks example#1517
vanshtaneja23 wants to merge 1 commit into
simonw:mainfrom
vanshtaneja23:docs/fix-fragment-loader-example

Conversation

@vanshtaneja23

Copy link
Copy Markdown

Two small fixes in docs/plugins/plugin-hooks.md, register_fragment_loaders section:

  1. Line 244: remove stray double period (callback..callback.).
  2. Lines 281-282: add missing f prefix on the second example's fragment source strings. Without it, {argument} renders literally instead of interpolating. The first example (line 269) does this correctly via .format(argument); this makes the second consistent.

Verified by running the interpolation locally: without the f, the source is the literal my-fragments:{argument}.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant