Fantom

 

class

docCompiler::UriMapper

sys::Obj
  docCompiler::UriMapper : docCompiler::DocCompilerSupport

UriMapper is used to normalize fandoc URIs into hrefs to their HTML file representation using relative URLs.

Slots

compilerSource

override DocCompiler compiler

doMapSource

virtual Uri? doMap(Str fandocUri, Loc loc)

Given a fandoc uri string, map it to a relative URL to the resource's HTML or return null if it cannot be mapped. If the fandocUri should be formatted as using a code font then set targetIsCode.

fandocUriSource

Str? fandocUri

fragSource

Str? frag

locSource

Loc? loc

makeSource

new make(DocCompiler compiler)

mapSource

Uri map(Str fandocUri, Loc loc)

Given a fandoc uri string, map it to a relative URL to the resource's HTML by setting targetUri, targetIsCode and targetIsSlot fields. If the URI cannot be mapped then an error is logged.

targetIsCodeSource

Bool targetIsCode

targetIsSlotSource

Bool targetIsSlot

targetUriSource

Uri? targetUri