Package

lol

Permalink

package lol

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. lol
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. package html

    Permalink

    HTML templating.

    HTML templating.

    val items: List[Item] = ???
    val content: Html = html"""
      <­h1>Items<­/h1>
      ${if(items.isEmpty) {
        html"<­em>No results<­/em>"
      } else {
        html"""
          <­ul>
            ${items.map { item =>
              html"<­li>${item.name}<­/li>"
            }}
          <­/ul>
        """
      }}
    """

    Html values can be easily created from the html interpolation. They will be encoded as Content thanks to Html.encoder.

Inherited from AnyRef

Inherited from Any

Ungrouped