Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
367 B · 13 lines
Astro
at main
1234567891011121314---// Toggle between the rendered and raw views of the same file.interface Props { path: string; view: 'rendered' | 'raw';}const { path, view } = Astro.props;---
<div class="owl-toggle"> <a class={view === 'rendered' ? 'active' : ''} href={`/rendered/${path}`}>Rendered</a> <a class={view === 'raw' ? 'active' : ''} href={`/raw/${path}`}>Raw</a></div>