From 9491151cb2b61385030598479461ce682ffb80e7 Mon Sep 17 00:00:00 2001 From: coldstar Date: Tue, 25 May 2021 16:04:12 -0700 Subject: [PATCH] 05/25/2021 04:04:12 PM MST --- routes/baseActionsRouter.js | 7 +++++-- views/address.pug | 11 +++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 views/address.pug diff --git a/routes/baseActionsRouter.js b/routes/baseActionsRouter.js index 1d99750..d5ac2c1 100755 --- a/routes/baseActionsRouter.js +++ b/routes/baseActionsRouter.js @@ -327,13 +327,16 @@ router.get("/address/:address", function(req, res) { console.log(obj.balance); console.log(obj.received); + res.locals.address = obj.address; + res.locals.balance = obj.balance; + res.locals.received = obj.received; + console.log(stderr); if (error !== null) { console.log(`exec error: ${error}`); } }); - /* const { spawn } = require("child_process"); @@ -361,7 +364,7 @@ router.get("/address/:address", function(req, res) { }); */ - //res.render("address"); + res.render("address"); }); diff --git a/views/address.pug b/views/address.pug new file mode 100644 index 0000000..32cc075 --- /dev/null +++ b/views/address.pug @@ -0,0 +1,11 @@ +extends layout + +block headContent + title Address #{address} + +block content + h1(class="h2") Address + br + small(class="monospace") #{address} + hr +