@(user: Option[com.bryzek.apidoc.api.v0.models.User])

@doc.main(routes.DocController.types.url, user, Some("Types")) {

  <p>

    apidoc supports types that are common on the web - and useful for
    many web applications. For example, many applications work with
    dates and date times - by explicitly supporting these types, we
    can simplify working with these types in all web applications, and
    for type safe languages, we can map to the appropriate classes in
    each language.

  </p>

  <p>
    @lib.PrimitiveMetadata.All.sortWith(_.primitive.toString < _.primitive.toString).map { md =>
      <a name='@md.primitive.toString'></a>
      <h3>@md.primitive.toString</h3>
      <ul>
        <li> @Html(lib.Markdown.toHtml(md.description))</li>
        <li> Examples:
             @Html(md.examples.mkString("<ul><li>", "</li><li>", "</li></ul>"))
        </li>
      </ul>
    }
  </p>

}

@(user: Option[com.bryzek.apidoc.api.v0.models.User])

@doc.main(routes.DocController.types.url, user, Some("Types")) {

  <p>

    apidoc supports types that are common on the web - and useful for
    many web applications. For example, many applications work with
    dates and date times - by explicitly supporting these types, we
    can simplify working with these types in all web applications, and
    for type safe languages, we can map to the appropriate classes in
    each language.

  </p>

  <p>
    @lib.PrimitiveMetadata.All.sortWith(_.primitive.toString < _.primitive.toString).map { md =>
      <a name='@md.primitive.toString'></a>
      <h3>@md.primitive.toString</h3>
      <ul>
        <li> @Html(lib.Markdown.toHtml(md.description))</li>
	@if(!md.examples.isEmpty) {
          <li> Examples:
               @Html(md.examples.mkString("<ul><li>", "</li><li>", "</li></ul>"))
          </li>
	}
      </ul>
    }
  </p>

}

Remove examples bullet for types w/ no examples
Remove examples bullet for types w/ no examples
