pluginPageSourcePath #
Source path of a plugin page, read from either form of its id: the request id or the resolved id below the site root. undefined for any other id.
Usage #
TypeScript
import { pluginPageSourcePath } from 'kawapress/generator'
const path = pluginPageSourcePath('/@kawapress-page/a/b.md')Parameters
idstring
A module id.
Returns The source path of the plugin page, or undefined when the id is not one.
Full type signature
TypeScript
function pluginPageSourcePath(id: string): string | undefined

Comments