Jiji-js.io is a desktop web applications for expose documentation
of Jiji-js Framework
writed with Jiji-js Framework
Live Jiji.io
node >= v10.19.0
npm cli >= 6.13.4
jiji-cli >= 0.0.20
(npm install -g jiji-cli
)
src/
src/index.html
src/main.index.js
In src directory you are free to manage your js controllers and other js files.
index.html file are the single page of your application projet
<!DOCTYPE html>
<html>
<head>
<script src="./index.js"></script>
</head>
<body>
<div class="router"></div>
</body>
</html>
main.index.js file are the main of your application
const Jiji = require("jiji-js");
Jiji.initialize(() => {/** code */});
main.js
const Jiji = require("jiji-js");
Jiji.initialize(() => {
Jiji.Router.init([
/** array of controller objects */
]);
Jiji.Router.route();// apply default route "/" by map provided in array at init Router
});
Controller provided in Router.init example Hello World :
...
Jiji.Router.init([
{
path: "/",
controller: {
constructor: (controller, callback) => {
callback();// call the callback to signal that your load is complete
},
destroy: (controller) => {
console.log('destroyed called');
},
innerHTML: `<div>Hello World</div>`
}
}
]);
...
ji debug
go to http://localhost:8080
ji build
Please drop file Developer Guide, Cookbook, and code sample issues only in this Jiji.io github repo.
Technical questions concerning Jiji-js itself belong in the jiji-js source code github repo.
MIT License