You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Deno fresh has built-in support for routes/**/*.(ts|jtsx|js|jsx) files but not for .mdx.
MDX lets you use JSX in your markdown content. You can import components, such as interactive charts or alerts, and embed them within your content. This makes writing long-form content with components a blast. 🚀 Continue reading ».
Netzo should allow using mdx files for routes to allow usage like similar to that of lume.land/plugins/mdx.
frontmatter to set page head
frontmatter made available (e.g. via page?)
allow importing components/islands (must support interactivity)
make components available as global (via context)
auto-generate a navigation (one nav item per page)?
---title: Dashboarddescription: An overview of sales for this quarter. ---import { SalesPlot } from"@/islands/SalesPlot.tsx";
const data = await getData(...);
# {page.title}{page.description}
<SalesPlotdata={data} />
instead of the equivalent
import{SalesPlot}from"@/islands/SalesPlot.tsx";consttitle="Dashboard";constdescription="An overview of sales for this quarter.";exportdefaultdefineRoute(async(req,ctx)=>{constdata=awaitgetData(...);return(<div><Head><title>{title} | Netzo</title><metaname="description"content={description}/></Head><h1className="font-bold text-xl">{title}</h1><pclassName="text-muted-foreground">{description}</p><SalesPlotdata={data}/></div>)})
This could probably be done via a fresh plugin mdx() which analogous to the api() plugin, mounts some routes, only that in this case it walks the file system to generate them instead of generating them only from the config object.
Deno fresh has built-in support for
routes/**/*.(ts|jtsx|js|jsx)
files but not for.mdx
.Netzo should allow using mdx files for routes to allow usage like similar to that of lume.land/plugins/mdx.
head
page
?)components
available as global (via context)instead of the equivalent
This could probably be done via a fresh plugin
mdx()
which analogous to theapi()
plugin, mounts some routes, only that in this case it walks the file system to generate them instead of generating them only from the config object.Reference
The text was updated successfully, but these errors were encountered: