2013-02-27 17:45:15 -07:00
|
|
|
package lila
|
|
|
|
|
2019-04-04 01:03:25 -06:00
|
|
|
import play.api.http._
|
|
|
|
import play.api.mvc.Codec
|
|
|
|
import scalatags.Text.Frag
|
|
|
|
|
2019-11-25 14:36:39 -07:00
|
|
|
package object app extends PackageObject {
|
2019-04-04 01:03:25 -06:00
|
|
|
|
|
|
|
implicit def contentTypeOfFrag(implicit codec: Codec): ContentTypeOf[Frag] =
|
|
|
|
ContentTypeOf[Frag](Some(ContentTypes.HTML))
|
|
|
|
|
|
|
|
implicit def writeableOfFrag(implicit codec: Codec): Writeable[Frag] =
|
|
|
|
Writeable(frag => codec.encode(frag.render))
|
|
|
|
}
|