Skip to content

embed v0.7.0

Choose a tag to compare

@hhkaos hhkaos released this 23 Aug 22:47
· 38 commits to main since this release

Added

  • event-id="<OTE id>" renders a single event from the feed — the widget's
    answer to "put this one event on its own page", which previously needed
    the host page to fetch the feed itself and assign widget.event from
    JavaScript. Matched against the event's id, the stable URI the OTE spec
    documents as never changing after publication: a name or a date can be
    edited, so filtering on either would silently empty a page that was
    already published.
  • event-id deliberately ignores show-past. Someone who pins an id to a
    page means that event, and having it vanish the morning after would be a
    surprise rather than a feature.
  • When the id matches nothing, the empty state says "Event not found in this
    feed." instead of "No upcoming events." — a different problem, and one the
    organizer can only fix if the widget says which it is. empty-message
    still overrides both.
  • The playground gained an event-id control, under Source.

Pin it with:

<script type="module" src="https://tools.opentechevents.org/embed/v0.7.0/ote-events.js"></script>
<ote-events feed="https://example.org/feed.json" event-id="https://example.org/events/2026-06-meetup"></ote-events>