kaelum 1.3.5 → 1.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/createApp.js +5 -0
  2. package/package.json +2 -1
package/createApp.js CHANGED
@@ -46,6 +46,11 @@ function createApp() {
46
46
  app.use(jsonParser);
47
47
  app.use(urlencodedParser);
48
48
 
49
+ // --- View Engine (EJS) ---
50
+ // Set EJS as the default view engine and point to ./views
51
+ app.set("view engine", "ejs");
52
+ app.set("views", "./views");
53
+
49
54
  // --- wrapper for core.setConfig ---
50
55
  app.setConfig = function (options = {}) {
51
56
  // call core setConfig if available (it should persist merged config)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kaelum",
3
- "version": "1.3.5",
3
+ "version": "1.3.6",
4
4
  "description": "A minimalist Node.js framework for building web pages and APIs with simplicity and speed.",
5
5
  "main": "index.js",
6
6
  "exports": {
@@ -27,6 +27,7 @@
27
27
  "license": "MIT",
28
28
  "dependencies": {
29
29
  "cors": "^2.8.5",
30
+ "ejs": "^3.1.10",
30
31
  "express": "^4.18.2",
31
32
  "fs-extra": "^11.3.0",
32
33
  "helmet": "^7.2.0",