thoughtworksinc / akka-http-twirl   1.2.0

Apache License 2.0 GitHub

Twirl file marshalling support for akka-http

Scala versions: 2.11 2.10

Build Status Maven Central

ThoughtWorks' fork of akka-http-twirl

Base on spray/spray TwirlSupport and https://github.com/btomala/akka-http-twirl

akka-http-twirl provides Twirl Xml, Html and Txt file marshalling support for Akka HTTP.

This fork adds Scala 2.10 support.

Installation

depend on akka-http version 2.0.4

Don't forget add twirl plugin.

plugins.sbt

addSbtPlugin("com.typesafe.sbt"  % "sbt-twirl"            % "1.1.1")

build.sbt

enablePlugins(SbtTwirl)

libraryDependencies += "com.thoughtworks.akka-http-twirl" %% "akka-http-twirl" % "latest.release"

Usage

Mix TwirlSupport into your Akka HTTP code which is supposed to marshal Twirl Html, Xml or Txt.

For more details look in to ExampleApp.

License

This code is open source software licensed under the Apache 2.0 License.