Still.Compiler.ViewHelpers.Link (Still v0.3.1) View Source

Renders an anchor HTML tag.

Link to this section Summary

Link to this section Functions

Link to this function

render(opts, metadata, opts)

View Source

Uses Still.Compiler.ViewHelpers.ContentTag to render an anchor tag.

Requires a :to option, the target URL. If this is a relative path, the website's base URL is prepended. If it is an absolute path the target: "_blank" and rel: "noopener noreferrer" options are added to be passed to Still.Compiler.ViewHelpers.ContentTag render function.

If there is a do block, it uses the current file preprocessor to render markup. Note that this is on demand, outside Still.Compiler.CompilationStage.