From fb32e910d8117be2e89c88088a49d47acd482c12 Mon Sep 17 00:00:00 2001 From: Jochen Damzog Date: Wed, 21 Sep 2022 16:28:06 +0200 Subject: [PATCH] migrated from jade to pug and bump versions --- manifest.yml | 2 +- package.json | 4 ++-- server.js | 2 +- views/pages/{index.jade => index.pug} | 0 views/partials/{content.jade => content.pug} | 0 views/partials/{footer.jade => footer.pug} | 0 views/partials/{header.jade => header.pug} | 0 7 files changed, 4 insertions(+), 4 deletions(-) rename views/pages/{index.jade => index.pug} (100%) rename views/partials/{content.jade => content.pug} (100%) rename views/partials/{footer.jade => footer.pug} (100%) rename views/partials/{header.jade => header.pug} (100%) diff --git a/manifest.yml b/manifest.yml index f3cc3c6..e5b4f71 100644 --- a/manifest.yml +++ b/manifest.yml @@ -1,6 +1,6 @@ --- applications: - name: cf-nodejs - memory: 512M + memory: 64M instances: 1 random-route: true diff --git a/package.json b/package.json index 468d65c..e21d73e 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "cf-nodejs", "version": "1.0.0", "dependencies": { - "express": "^4.13.4", - "jade": "^1.11.0" + "express": "^4.18.1", + "pug": "^3.0.2" } } diff --git a/server.js b/server.js index 151b2d8..557a8b0 100644 --- a/server.js +++ b/server.js @@ -4,7 +4,7 @@ var cf_app = require( './app/vcap_application') var cf_svc = require( './app/vcap_services') app.set( 'views', __dirname + '/views') -app.set( 'view engine', 'jade') +app.set( 'view engine', 'pug') app.use( express.static( __dirname + '/public')) app.get( '/', function ( req, res) { diff --git a/views/pages/index.jade b/views/pages/index.pug similarity index 100% rename from views/pages/index.jade rename to views/pages/index.pug diff --git a/views/partials/content.jade b/views/partials/content.pug similarity index 100% rename from views/partials/content.jade rename to views/partials/content.pug diff --git a/views/partials/footer.jade b/views/partials/footer.pug similarity index 100% rename from views/partials/footer.jade rename to views/partials/footer.pug diff --git a/views/partials/header.jade b/views/partials/header.pug similarity index 100% rename from views/partials/header.jade rename to views/partials/header.pug