package scalaz
package http
package response
package xhtml
sealed trait Doctype {
val asString: String
}
private final case object Transitional extends Doctype {
val asString = """<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">"""
}
private final case object Strict extends Doctype {
val asString = """<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">"""
}
private final case object Frameset extends Doctype {
val asString = """<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">"""
}
trait Doctypes {
val doctypes = List(transitional, strict, frameset)
val transitional: Doctype = Transitional
val strict: Doctype = Strict
val frameset: Doctype = Frameset
}
object Doctype extends Doctypes