Wraith. Embed
(Wraith v0.1.0)
View Source
{{embed <url> "optional caption"}} on its own line in a post. YouTube,
Vimeo and X get their player/embed; anything else becomes a bookmark card
(title, description, image from the page's Open Graph tags, cached for a
day).
Rendering never waits on the network: a URL not yet cached renders as a
plain link card and is fetched in the background (warm/1 runs after
every save, so readers normally find it cached). Code that renders once
and can't be re-rendered — the newsletter — calls prefetch/1 first.
A page that does not answer is retried after five minutes, not a day.
Summary
Functions
Open Graph title/description/image of a page from the cache; %{} (and a
background fetch) when it isn't there yet.
Fetch the metadata of every not-yet-cached bookmark in a post body, now (4 at a time).
Fetch, in the background, the metadata of every bookmark in a post body.
Functions
Open Graph title/description/image of a page from the cache; %{} (and a
background fetch) when it isn't there yet.
Fetch the metadata of every not-yet-cached bookmark in a post body, now (4 at a time).
Fetch, in the background, the metadata of every bookmark in a post body.