UrlAttrName

io.eezo.core.html.UrlAttrName
final class UrlAttrName extends AttrName

An attribute name whose value is an address: href, action, src.

Separate from AttrName because a Url means something only where a browser will follow it. Restricting the arm to these three is what makes Attrs.cls := Url.Mounted("/posts") a compile error rather than a class attribute that quietly moves under a mount. The constructor stays private[html] so Attrs is the one list that decides which names carry a Url, and the constructors of Attr and AttrValue.Link are package private for the same reason: either of them left public would let a call site outside io.eezo.core.html pair a name of its own with an AttrValue.Link, minting one outright or lifting one out of an href attribute it had just built, and so mint a fourth url bearing name that a mount would then rewrite.

Attributes

Source
Tag.scala
Graph
Supertypes
class AttrName
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def :=(value: Url): Attr

Attributes

Source
Tag.scala

Inherited methods

def :=(value: Boolean): Iterable[Attr]

A present attribute is the truth, so true renders the bare name and false renders nothing at all. The Iterable arm of Mod absorbs both, which is why a conditional attribute needs no helper of its own.

A present attribute is the truth, so true renders the bare name and false renders nothing at all. The Iterable arm of Mod absorbs both, which is why a conditional attribute needs no helper of its own.

Attributes

Inherited from:
AttrName
Source
Tag.scala
def :=(value: Int): Attr

Attributes

Inherited from:
AttrName
Source
Tag.scala
def :=(value: String): Attr

Attributes

Inherited from:
AttrName
Source
Tag.scala