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

HypertextAttributeValueInterpolatable

mattt edited this page Sep 24, 2020 · 2 revisions

HypertextAttributeValueInterpolatable

A type that customizes its representation in a hypertext literal attribute value.

public protocol HypertextAttributeValueInterpolatable

Requirements

html(for:​in:​)

Returns a representative value of this instance for an attribute value in a hypertext literal.

func html(for attribute:​ String, in element:​ String) -> HTML?

Parameters

  • attribute:​ The name of the attribute.
  • element:​ The name of the element.

Returns

An HTML representation, or nil.