Base on spray/spray
akka-http-twirl provides Twirl
Txt file marshalling support for Akka HTTP.
depend on akka-http version 10.0.1
Don't forget add twirl plugin.
addSbtPlugin("com.typesafe.sbt" % "sbt-twirl" % "1.3.0")
resolvers += "Bartek's repo at Bintray" at "https://dl.bintray.com/btomala/maven" lazy val myProject = (project in file(".")).enablePlugins(SbtTwirl) libraryDependencies += "btomala" %% "akka-http-twirl" % "lastVersion"
TwirlSupport into your Akka HTTP code which is supposed to marshal Twirl
For more details look in to
This code is open source software licensed under the Apache 2.0 License.