mixinafFandoc::LinkResolver
afFandoc::LinkResolver
@Js
An interface for resolving URI links.
- cssLinkResolver
static LinkResolver cssLinkResolver(|Str?,Uri->Uri? resolverLinkFn)Returns a
LinkResolverthat validates CSS links - use in conjunction withCssLinkProcessor.- fandocResolver
static LinkResolver fandocResolver()Returns a
LinkResolverthat returns links to documentation on the Fantom website.Supports qualified Fantom links as defined in compilerDoc::DocLink and resolves them to the Fantom website. (@ http://fantom.org/doc/)
Format
Display
Links To
pod::index
pod
absolute link to pod index
pod::pod-doc
pod
absolute link to pod doc chapter
pod::Type
Type
absolute link to type qname
pod::Types.slot
Type.slot
absolute link to slot qname
pod::Chapter
Chapter
absolute link to book chapter
pod::Chapter#frag
Chapter
absolute link to book chapter anchor
- fromFn
static new fromFn(|Str?,Uri->Uri? fn)Creates a
LinkResolverfrom the given fn.- idPassThroughResolver
static LinkResolver idPassThroughResolver()Returns a
LinkResolverthat returns the givenurlshould it be prefixed with a#.- javascriptErrorResolver
static LinkResolver javascriptErrorResolver(Uri errorUrl := `/error`)Returns a
LinkResolverthat returns anerrorUrlshould the givenurlhave a scheme ofjavascript:.- passThroughResolver
static LinkResolver passThroughResolver()Returns a basic
LinkResolverthat just returns the givenurl.- pathAbsPassThroughResolver
static LinkResolver pathAbsPassThroughResolver()Returns a
LinkResolverthat returns the givenurlshould it be path only and path absolute.- resolve
abstract Uri? resolve(Str? scheme, Uri url)Resolve the given
url.- schemePassThroughResolver
static LinkResolver schemePassThroughResolver(Str[] schemes := "http https ftp data".split())Returns a
LinkResolverthat returns the givenurlshould it be qualified with a common scheme such as:http,https,ftp,data.