@(title: Html, nav: String = "")(content: Html)(implicit request: play.api.mvc.Request[AnyContent]) @* check for the pjax header *@ @if(request.headers.get("X-PJAX").isDefined) { @title @content } else { @* normal request, not pjax *@ Form samples
@content
@* Load and call pjax lib *@ } @* End else *@