% commonly contain two boxed items (Before / after, code / picture).
\definefloat[example][examples]
\setupcaption[example][location=top] % Put captions on top
% commonly contain two boxed items (Before / after, code / picture).
\definefloat[example][examples]
\setupcaption[example][location=top] % Put captions on top