README
A pajax server support module
install
npm install nokit-pjax --save
server
{
...
"filters":{
"^/":"nokit-pjax"
},
"folders":{
"public":{
"^/pjax/(.*)
A pjax module
<script type="module">
import nokitPjax from 'https://cdn.skypack.dev/nokit-pjax';
</script>
A pajax server support module
npm install nokit-pjax --save
{
...
"filters":{
"^/":"nokit-pjax"
},
"folders":{
"public":{
"^/pjax/(.*)
quot;: "./node_modules/nokit-pjax/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>
...