A function to get the current year and render it in templating engine.
npm install @narando/express-expose-current-yearA function to get the current year and render it in templating engine.
You need to have nodejs, npm, express installed.
``bash`
$ npm install @narando/express-expose-current-year
Get the current year at your locales to render it in mustache:
`javascript
// server.js
import exposeCurrentYear from "@narando/express-expose-current-year";
import express from "express";
const app = express();
app.use(exposeCurrentYear());
app.listen(HTTP_PORT, () => {});
`
`html``