Skip to content
This repository has been archived by the owner on Oct 17, 2021. It is now read-only.

HypertextAttributesInterpolatable

mattt edited this page Sep 24, 2020 · 2 revisions

HypertextAttributesInterpolatable

A type that provides attributes for a hypertext literal element.

public protocol HypertextAttributesInterpolatable

Requirements

html(in:​)

Returns the attributes that correspond to this instance for an element in a hypertext literal.

func html(in element:​ String) -> HTML

Parameters

  • element:​ The name of the element.

Returns

An HTML representation, or nil.