📁 Route to Anything
Point a route at a .md, .pdf, .mp4, .png, or .json file and WBC renders it. File, URL, Markdown, and HTML sources all work out of the box.
Turn Vue Router into a content engine — render Markdown, HTML, JSON, files, and live Vue components straight from your route definitions. No extra .vue views, no build steps.
WBC-Routes2 is a content orchestration layer on top of Vue Router. Instead of declaring a .vue view per route, you describe what a route should render as data — and the single WBC component does the rest:
{
path: "/guide",
name: "GuideRoute",
component: WBC,
props: {
item: "./docs/guide.md" // Markdown, file, URL, JSON, HTML, or an array of them
}
}That one idea scales from a single Markdown page to multilingual, SEO-aware, encrypted dynamic views — all without extra build steps. Browse the sidebar for route sources, configuration, advanced features, and recipes.