nokit-pjax

0.2.0 • Public • Published

A pajax server support module

install

npm install nokit-pjax --save

server

{
    ...
    "filters":{
        "^/":"nokit-pjax"
    },
    "folders":{
        "public":{
            "^/pjax/(.*)$": "./node_modules/nokit-pjax/client"
        }
    }
    ...
}

client

...
<head>
     <link rel="stylesheet" href="/client/pjax.min.css" />
     <script src="/js/jquery.js"></script> 
     <script src="/pjax/pjax.min.js"></script> 
</head>
<a href="./index" data-pjax-container="#info">index</a> | 
<a href="./test" data-pjax-container="#info">test</a>
<br/>
<div id="info">
    index
</div>
...

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.0
    1
    • latest

Version History

Package Sidebar

Install

npm i nokit-pjax

Weekly Downloads

1

Version

0.2.0

License

MIT

Last publish

Collaborators

  • houzhanfeng