kieryjs
v1.1.1
Published
Minimalist, fast, simple web framework based on ExpressJS for node.
Downloads
22
Readme
Minimalist, fast, simple web framework based on ExpressJS for node.
const kieryjs = require('./index');
// create the server
kieryjs.createServer({
index: 'index.ejs',
engine: 'ejs',// render the file in "views/index.ejs"
includeVariableOnPage: true,
varPage: { HelloWorld: "Hello, World!" }, // Add a variable called "HelloWorld" with the value "Hello, World!"
port: 8080, // at port 3000 (http://localhost:3000)
staticFolder: 'public' // set static folder (css, js, img) to "public"
});
// create your first page
kieryjs.createPage({
renderFile: 'second.ejs',
path: 'second',
includeVariableOnPage: true,
varPage: { hello: "helloworld" }
})
Installation
KieryJS is available on nodejs, before installing, download and install Node.js. For add KieryJS on your project, doing this command:
$ npm install kieryjs