Version | Play Version | Scala 2.12.x | Scala 2.11.x |
---|---|---|---|
1.0.x | 2.5.x | no | yes |
1.1.x | 2.6.x | yes | yes |
1.2.x | tbd | tbd | tbd |
-
Add the play filter to your application
-
Add the reslover if needed
resolvers += Resolver.jcenterRepo
-
Add the dependency to your sbt file
libraryDependencies ++= Seq( "com.thatscalaguy" %% "play-pjax" % "1.1" )
-
Enable the module in the
application.conf
play.modules.enabled += "com.thatscalaguy.play.filters.PjaxFilterModule"
-
Add the
PjaxFilter
to your applicationHttpFilters
classclass Filters @Inject()(pjaxFilter: PjaxFilter) extends HttpFilters { override def filters: Seq[EssentialFilter] = Seq(pjaxFilter) }
-
-
Add pjax to your views
Find a detailed instruction of pjax here.
This software is licensed under the MIT license, please see the LICENSE file.