Pjax is a technique which generally allows you to enhance normal links on a webpage. In pjax, code in the server can be reused. Pjax request will be passed like otherrequests through stack, except the browser removes some content on the webpage instead of creating a new webpage. So you do not need to duplicate the server sidetemplate on the client side.