Skip to content
This repository has been archived by the owner on Dec 10, 2022. It is now read-only.

ThatScalaGuy/play-pjax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

play-pjax Build Status codecov Codacy Badge

Requirements

Compatibility Matrix

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

Installation

  1. 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 application HttpFilters class

      class Filters @Inject()(pjaxFilter: PjaxFilter) extends HttpFilters {
        override def filters: Seq[EssentialFilter] = Seq(pjaxFilter)
      }
  2. Add pjax to your views
    Find a detailed instruction of pjax here.

Notes

License

This software is licensed under the MIT license, please see the LICENSE file.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages