OgEx 0.3.0
This release introduces the controller card DSL and dedicated image dispatch.
og_card :show, PostOgCardassociates a card with one controller action.Card.load/2loads image data without running the normal controller action.- A controller function passed with
load:can replace the card loader. image_route: :pathgenerates/opengraph-image/TOKENand
/twitter-image/TOKENURLs.image_route: :querygenerates?__og_ex=TOKENURLs.- Path requests can be handled by
og_ex_routes()in the router or by
plug OgEx, router: MyAppWeb.Routerin the endpoint. - Duplicate declarations and simultaneous router/endpoint integrations are
detected instead of being silently accepted. - Loader failures return non-cacheable
404or503responses. - The 0.2
render(..., og: ...)API remains available during migration.
Install:
{:og_ex, "~> 0.3.0"}