1.0.2 • Published 4 years ago
express-get v1.0.2
what is this?
Render ejs and html files in one step.
Installation
npm i express-get
Then...
const express = require("express");
const ejs = require("ejs")
const route = require("express-get()")
const app = express()
route.get("/","index",app)
options
For rendering ejs file send the name of the file, And for an html file send the fileName with extension
- route.get("/","index",app) - _ejs
- route.get("/","index.html,app") - _htmlFile