commit a90c1942e14533b361d43a3f71d846fcbf3dc88c Author: unknown Date: Sat Jun 23 17:10:20 2018 -0400 setup diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..5617b5c --- /dev/null +++ b/.env.example @@ -0,0 +1,5 @@ +user= +password= +host= +port= +database= \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..09cf53d --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +node_modules/* +.env +*.log \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..37c2b90 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,26 @@ +{ + "version": "0.1.0", + "configurations": [ + { + "name": "Node Start", + "type": "node", + "program": "${workspaceRoot}/index.js", + "request": "launch", + "cwd": "${workspaceRoot}", + "runtimeExecutable": null, + "env": { + "NODE_ENV": "developement" + } + }, + { + "name": "Mocha Test", + "type": "node", + "program": "${workspaceRoot}/node_modules/mocha/bin/_mocha", + "request": "launch", + "cwd": "${workspaceRoot}", + "runtimeExecutable": null, + "env": { + "NODE_ENV": "testing" + } + }] +} \ No newline at end of file diff --git a/index.js b/index.js new file mode 100644 index 0000000..465b549 --- /dev/null +++ b/index.js @@ -0,0 +1,2 @@ +var server = require('./server'); +server.listen(80); \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..5088cae --- /dev/null +++ b/package.json @@ -0,0 +1,27 @@ +{ + "name": "base", + "version": "1.0.0", + "description": "", + "main": "index.js", + "scripts": { + "test": "node_modules/mocha/bin/mocha", + "start": "node index.js" + }, + "author": "", + "license": "ISC", + "devDependencies": { + "chai": "^3.5.0", + "chai-http": "^3.0.0", + "mocha": "^2.5.3" + }, + "dependencies": { + "body-parser": "^1.17.1", + "cookie-parser": "^1.4.3", + "csvtojson": "^2.0.0", + "dotenv": "^2.0.0", + "express": "^4.13.4", + "express-handlebars": "^3.0.0", + "multer": "^1.3.0", + "pg": "^7.4.1" + } +} diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..b58a509 --- /dev/null +++ b/readme.md @@ -0,0 +1,20 @@ +### Interaction Details +* Source Definitions (Maint/Inquire) + + * list `/srce_list` + * set `/srce_set` + +* Regex Instructions (Maint/Inquire) + + * list `/regex_list` + * set `/regex_set` + +* Cross Reference List (Maint/Inquire) + + * list `/map_list` + * set `/map_set` + * show unampped `/unmapped` + +* Run Import + + * run `/import_csv` takes a csv body \ No newline at end of file diff --git a/server.js b/server.js new file mode 100644 index 0000000..688dd41 --- /dev/null +++ b/server.js @@ -0,0 +1,258 @@ +require('dotenv').config(); +var express = require('express'); +var handlebars = require('express-handlebars'); +var bodyParser = require('body-parser'); +var cookieParser = require('cookie-parser'); +var mult = require('multer'); +var upload = mult({ encoding: "utf8" }); +var csvtojson = require('csvtojson'); +var pg = require('pg'); + +var server = express(); +server.engine('handlebars', handlebars()); +server.set('view engine', 'handlebars'); + + +var Postgres = new pg.Client({ + + user: process.env.user, + password: process.env.password, + host: process.env.host, + port: process.env.port, + database: process.env.database, + application_name: "tps_etl_api", + ssl: true +}) + +Postgres.connect(); + +//-------------------------------------------------------------list source-------------------------------------------------------------------------- + +server.use("/srce_list", function (inReq, inRes) { + + var sql = "SELECT jsonb_agg(defn) source_list FROM tps.srce" + console.log(sql); + + Postgres.query(sql, (err, res) => { + inRes.json(res.rows[0]); + console.log("source list request complete"); + }); +} +); + +//-------------------------------------------------------------list maps-------------------------------------------------------------------------- + +server.use("/map_list", function (inReq, inRes) { + + var sql = "SELECT jsonb_agg(regex) regex FROM tps.map_rm" + console.log(sql); + + Postgres.query(sql, (err, res) => { + + if (err === null) { + inRes.json(res.rows[0]); + return; + } + inRes.json(err.message); + }); +} +); + +//--------------------------------------------------------list unmapped items flagged to be mapped--------------------------------------------------- + +server.use("/unmapped", function (inReq, inRes) { + + var sql = "SELECT jsonb_agg(row_to_json(x)::jsonb) regex FROM tps.report_unmapped_recs('"; + sql += inReq.query.srce + "') x" + console.log(sql); + + Postgres.query(sql, (err, res) => { + + if (err === null) { + inRes.json(res.rows[0]); + return; + } + inRes.json(err.message); + }); +} +); + +//-------------------------------------------------------------set source via json in body-------------------------------------------------------------------------- + +server.use("/srce_set", bodyParser.json(), function (inReq, inRes) { + + //validate the body contents before pushing to sql? + var sql = "SELECT x.message FROM tps.srce_set($$"; + sql += JSON.stringify( inReq.body); + sql += "$$::jsonb) as x(message)"; + console.log(sql); + + Postgres.query(sql, (err, res) => { + + //Postgres.end(); + + if (err === null) { + inRes.json(res.rows[0]); + return; + } + inRes.json(err.message); + //handle error + }); +} +); + +//-------------------------------------------------------------set one or more map definitions-------------------------------------------------------------------------- + +server.use("/mapdef_set", bodyParser.json(), function (inReq, inRes) { + + //validate the body contents before pushing to sql? + var sql = "SELECT x.message FROM tps.srce_map_def_set($$"; + sql += JSON.stringify( inReq.body); + sql += "$$::jsonb) as x(message)"; + console.log(sql); + + Postgres.query(sql, (err, res) => { + + //Postgres.end(); + + if (err === null) { + inRes.json(res.rows[0]); + return; + } + inRes.json(err.message); + //handle error + }); + +} +); + +//-------------------------------------------------------------add entries to lookup table-------------------------------------------------------------------------- + +server.use("/mapval_set", bodyParser.json(), function (inReq, inRes) { + + //validate the body contents before pushing to sql? + var sql = "SELECT x.message FROM tps.map_rv_set($$"; + sql += JSON.stringify( inReq.body); + sql += "$$::jsonb) as x(message)"; + console.log(sql); + + Postgres.query(sql, (err, res) => { + + //Postgres.end(); + + if (err === null) { + inRes.json(res.rows[0]); + return; + } + inRes.json(err.message); + //handle error + }); + +} +); + +/* +send a csv with powershell: +wget -uri http://localhost/import -Method Post -InFile "C:\Users\fleet\Downloads\d.csv" +bash +curl -v -F upload=@//mnt/c/Users/fleet/Downloads/d.csv localhost/import +*/ + +//-------------------------------------------------------------import data-------------------------------------------------------------------------- + +server.use("/import", upload.single('upload'), function (inReq, inRes) { + + //console.log(inReq.file); + console.log("should have gotten file as post body here"); + var csv = inReq.file.buffer.toString('utf8') + // create a new converter object + var c2j = require('csvtojson'); + //var jobj = c2j.fromString(csv). + //{headers: "true", delimiter: ",", output: "jsonObj", flatKeys: "true"} + c2j({ flatKeys: "true" }).fromString(csv).then( + (x) => { + //console.log(x); + //inRes.json(x); + + //push to db + var sql = "SELECT x.message FROM tps.srce_import($$"; + sql += inReq.query.srce; + sql += "$$, $$" + sql += JSON.stringify(x) + sql += "$$::jsonb) as x(message)" + console.log("sql for insert here"); + //console.log(sql); + + Postgres.query(sql, (err, res) => { + + //Postgres.end(); + + if (err === null) { + inRes.json(res.rows[0]); + Postgres.end(); + return; + } + inRes.json(err.message); + //Postgres.end(); + //handle error + } + ); + } + //const jsonArray = csv().fromFile(csvFilePath); + //c2j({ output: "csv" }).fromString(csv).then((jsonObj) => { console.log(jsonObj) }); + //validate the body contents before pushing to sql? + ); + } +); + +//-------------------------------------------------------------suggest source def-------------------------------------------------------------------------- + +server.use("/csv_suggest", upload.single('upload'), function (inReq, inRes) { + + //console.log(inReq.file); + console.log("should have gotten file as post body here"); + var csv = inReq.file.buffer.toString('utf8') + // create a new converter object + var c2j = require('csvtojson'); + //var jobj = c2j.fromString(csv). + //{headers: "true", delimiter: ",", output: "jsonObj", flatKeys: "true"} + c2j({ flatKeys: "true" }).fromString(csv).then( + (x) => { + //console.log(x); + //inRes.json(x); + + //push to db + var sug = {}; + for (var key in x[0]) { + if (!isNaN(parseFloat(x[0][key])) && isFinite(x[0][key])) { + if (x[0][key].charAt(0) == "0"){ + sug[key] = "text"; + } + else { + sug[key] = "numeric"; + } + } + else if (Date.parse(x[0][key]) > Date.parse('1950-01-01') && Date.parse(x[0][key]) < Date.parse('2050-01-01')) { + sug[key] = "date"; + } + else { + sug[key] = "text"; + } + } + console.log(sug); + inRes.json(sug); + //console.log(sql); + } + //const jsonArray = csv().fromFile(csvFilePath); + //c2j({ output: "csv" }).fromString(csv).then((jsonObj) => { console.log(jsonObj) }); + //validate the body contents before pushing to sql? + ); + } +); + + + server.get("/", function (inReq, inRes) { + inRes.render("definition", { title: "definition", layout: "main" }); + }) + + module.exports = server; \ No newline at end of file diff --git a/static/index.html b/static/index.html new file mode 100644 index 0000000..48ef2e4 --- /dev/null +++ b/static/index.html @@ -0,0 +1,106 @@ + + + + + + + + + + + + + + +
+ + +
+
+
+ + +
+
+
+ +
+
+
+ + +
+
+ +
+
+
+ +
+
    +
  • + name: + +
  • +
+
+ +
+ + + + + \ No newline at end of file diff --git a/static/papa.js b/static/papa.js new file mode 100644 index 0000000..661e101 --- /dev/null +++ b/static/papa.js @@ -0,0 +1,6 @@ +/*! + Papa Parse + v4.3.2 + https://github.com/mholt/PapaParse +*/ +!function(a,b){"function"==typeof define&&define.amd?define([],b):"object"==typeof module&&module.exports?module.exports=b():a.Papa=b()}(this,function(){"use strict";function a(a,b){b=b||{};var c=b.dynamicTyping||!1;if(r(c)&&(b.dynamicTypingFunction=c,c={}),b.dynamicTyping=c,b.worker&&z.WORKERS_SUPPORTED){var h=k();return h.userStep=b.step,h.userChunk=b.chunk,h.userComplete=b.complete,h.userError=b.error,b.step=r(b.step),b.chunk=r(b.chunk),b.complete=r(b.complete),b.error=r(b.error),delete b.worker,void h.postMessage({input:a,config:b,workerId:h.id})}var i=null;return"string"==typeof a?i=b.download?new d(b):new f(b):a.readable===!0&&r(a.read)&&r(a.on)?i=new g(b):(t.File&&a instanceof File||a instanceof Object)&&(i=new e(b)),i.stream(a)}function b(a,b){function c(){"object"==typeof b&&("string"==typeof b.delimiter&&1===b.delimiter.length&&z.BAD_DELIMITERS.indexOf(b.delimiter)===-1&&(j=b.delimiter),("boolean"==typeof b.quotes||b.quotes instanceof Array)&&(h=b.quotes),"string"==typeof b.newline&&(k=b.newline),"string"==typeof b.quoteChar&&(l=b.quoteChar),"boolean"==typeof b.header&&(i=b.header))}function d(a){if("object"!=typeof a)return[];var b=[];for(var c in a)b.push(c);return b}function e(a,b){var c="";"string"==typeof a&&(a=JSON.parse(a)),"string"==typeof b&&(b=JSON.parse(b));var d=a instanceof Array&&a.length>0,e=!(b[0]instanceof Array);if(d&&i){for(var g=0;g0&&(c+=j),c+=f(a[g],g);b.length>0&&(c+=k)}for(var h=0;h0&&(c+=j);var n=d&&e?a[m]:m;c+=f(b[h][n],m)}h-1||" "===a.charAt(0)||" "===a.charAt(a.length-1);return c?l+a+l:a}function g(a,b){for(var c=0;c-1)return!0;return!1}var h=!1,i=!0,j=",",k="\r\n",l='"';c();var m=new RegExp(l,"g");if("string"==typeof a&&(a=JSON.parse(a)),a instanceof Array){if(!a.length||a[0]instanceof Array)return e(null,a);if("object"==typeof a[0])return e(d(a[0]),a)}else if("object"==typeof a)return"string"==typeof a.data&&(a.data=JSON.parse(a.data)),a.data instanceof Array&&(a.fields||(a.fields=a.meta&&a.meta.fields),a.fields||(a.fields=a.data[0]instanceof Array?a.fields:d(a.data[0])),a.data[0]instanceof Array||"object"==typeof a.data[0]||(a.data=[a.data])),e(a.fields||[],a.data||[]);throw"exception: Unable to serialize unrecognized input"}function c(a){function b(a){var b=p(a);b.chunkSize=parseInt(b.chunkSize),a.step||a.chunk||(b.chunkSize=null),this._handle=new h(b),this._handle.streamer=this,this._config=b}this._handle=null,this._paused=!1,this._finished=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},b.call(this,a),this.parseChunk=function(a){if(this.isFirstChunk&&r(this._config.beforeFirstChunk)){var b=this._config.beforeFirstChunk(a);void 0!==b&&(a=b)}this.isFirstChunk=!1;var c=this._partialLine+a;this._partialLine="";var d=this._handle.parse(c,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var e=d.meta.cursor;this._finished||(this._partialLine=c.substring(e-this._baseIndex),this._baseIndex=e),d&&d.data&&(this._rowCount+=d.data.length);var f=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(v)t.postMessage({results:d,workerId:z.WORKER_ID,finished:f});else if(r(this._config.chunk)){if(this._config.chunk(d,this._handle),this._paused)return;d=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(d.data),this._completeResults.errors=this._completeResults.errors.concat(d.errors),this._completeResults.meta=d.meta),!f||!r(this._config.complete)||d&&d.meta.aborted||this._config.complete(this._completeResults,this._input),f||d&&d.meta.paused||this._nextChunk(),d}},this._sendError=function(a){r(this._config.error)?this._config.error(a):v&&this._config.error&&t.postMessage({workerId:z.WORKER_ID,error:a,finished:!1})}}function d(a){function b(a){var b=a.getResponseHeader("Content-Range");return null===b?-1:parseInt(b.substr(b.lastIndexOf("/")+1))}a=a||{},a.chunkSize||(a.chunkSize=z.RemoteChunkSize),c.call(this,a);var d;u?this._nextChunk=function(){this._readChunk(),this._chunkLoaded()}:this._nextChunk=function(){this._readChunk()},this.stream=function(a){this._input=a,this._nextChunk()},this._readChunk=function(){if(this._finished)return void this._chunkLoaded();if(d=new XMLHttpRequest,this._config.withCredentials&&(d.withCredentials=this._config.withCredentials),u||(d.onload=q(this._chunkLoaded,this),d.onerror=q(this._chunkError,this)),d.open("GET",this._input,!u),this._config.downloadRequestHeaders){var a=this._config.downloadRequestHeaders;for(var b in a)d.setRequestHeader(b,a[b])}if(this._config.chunkSize){var c=this._start+this._config.chunkSize-1;d.setRequestHeader("Range","bytes="+this._start+"-"+c),d.setRequestHeader("If-None-Match","webkit-no-cache")}try{d.send()}catch(a){this._chunkError(a.message)}u&&0===d.status?this._chunkError():this._start+=this._config.chunkSize},this._chunkLoaded=function(){if(4==d.readyState){if(d.status<200||d.status>=400)return void this._chunkError();this._finished=!this._config.chunkSize||this._start>b(d),this.parseChunk(d.responseText)}},this._chunkError=function(a){var b=d.statusText||a;this._sendError(b)}}function e(a){a=a||{},a.chunkSize||(a.chunkSize=z.LocalChunkSize),c.call(this,a);var b,d,e="undefined"!=typeof FileReader;this.stream=function(a){this._input=a,d=a.slice||a.webkitSlice||a.mozSlice,e?(b=new FileReader,b.onload=q(this._chunkLoaded,this),b.onerror=q(this._chunkError,this)):b=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(a.target.result)},this._chunkError=function(){this._sendError(b.error)}}function f(a){a=a||{},c.call(this,a);var b,d;this.stream=function(a){return b=a,d=a,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var a=this._config.chunkSize,b=a?d.substr(0,a):d;return d=a?d.substr(a):"",this._finished=!d,this.parseChunk(b)}}}function g(a){a=a||{},c.call(this,a);var b=[],d=!0;this.stream=function(a){this._input=a,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._nextChunk=function(){b.length?this.parseChunk(b.shift()):d=!0},this._streamData=q(function(a){try{b.push("string"==typeof a?a:a.toString(this._config.encoding)),d&&(d=!1,this.parseChunk(b.shift()))}catch(a){this._streamError(a)}},this),this._streamError=q(function(a){this._streamCleanUp(),this._sendError(a.message)},this),this._streamEnd=q(function(){this._streamCleanUp(),this._finished=!0,this._streamData("")},this),this._streamCleanUp=q(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function h(a){function b(){if(x&&o&&(l("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+z.DefaultDelimiter+"'"),o=!1),a.skipEmptyLines)for(var b=0;b=w.length?"__parsed_extra":w[d]),g=f(e,g),"__parsed_extra"===e?(c[e]=c[e]||[],c[e].push(g)):c[e]=g}x.data[b]=c,a.header&&(d>w.length?l("FieldMismatch","TooManyFields","Too many fields: expected "+w.length+" fields but parsed "+d,b):d1&&(k+=Math.abs(o-f),f=o):f=o}m.data.length>0&&(l/=m.data.length),("undefined"==typeof e||k1.99&&(e=k,d=j)}return a.delimiter=d,{successful:!!d,bestDelimiter:d}}function j(a){a=a.substr(0,1048576);var b=a.split("\r"),c=a.split("\n"),d=c.length>1&&c[0].length=b.length/2?"\r\n":"\r"}function k(a){var b=q.test(a);return b?parseFloat(a):a}function l(a,b,c,d){x.errors.push({type:a,code:b,message:c,row:d})}var m,n,o,q=/^\s*-?(\d*\.?\d+|\d+\.?\d*)(e[-+]?\d+)?\s*$/i,s=this,t=0,u=!1,v=!1,w=[],x={data:[],errors:[],meta:{}};if(r(a.step)){var y=a.step;a.step=function(d){if(x=d,c())b();else{if(b(),0===x.data.length)return;t+=d.data.length,a.preview&&t>a.preview?n.abort():y(x,s)}}}this.parse=function(c,d,e){if(a.newline||(a.newline=j(c)),o=!1,a.delimiter)r(a.delimiter)&&(a.delimiter=a.delimiter(c),x.meta.delimiter=a.delimiter);else{var f=h(c,a.newline);f.successful?a.delimiter=f.bestDelimiter:(o=!0,a.delimiter=z.DefaultDelimiter),x.meta.delimiter=a.delimiter}var g=p(a);return a.preview&&a.header&&g.preview++,m=c,n=new i(g),x=n.parse(m,d,e),b(),u?{meta:{paused:!0}}:x||{meta:{paused:!1}}},this.paused=function(){return u},this.pause=function(){u=!0,n.abort(),m=m.substr(n.getCharIndex())},this.resume=function(){u=!1,s.streamer.parseChunk(m)},this.aborted=function(){return v},this.abort=function(){v=!0,n.abort(),x.meta.aborted=!0,r(a.complete)&&a.complete(x),m=""}}function i(a){a=a||{};var b=a.delimiter,c=a.newline,d=a.comments,e=a.step,f=a.preview,g=a.fastMode,h=a.quoteChar||'"';if(("string"!=typeof b||z.BAD_DELIMITERS.indexOf(b)>-1)&&(b=","),d===b)throw"Comment character same as delimiter";d===!0?d="#":("string"!=typeof d||z.BAD_DELIMITERS.indexOf(d)>-1)&&(d=!1),"\n"!=c&&"\r"!=c&&"\r\n"!=c&&(c="\n");var i=0,j=!1;this.parse=function(a,k,l){function m(a){x.push(a),A=i}function n(b){return l?p():("undefined"==typeof b&&(b=a.substr(i)),z.push(b),i=s,m(z),w&&q(),p())}function o(b){i=b,m(z),z=[],E=a.indexOf(c,i)}function p(a){return{data:x,errors:y,meta:{delimiter:b,linebreak:c,aborted:j,truncated:!!a,cursor:A+(k||0)}}}function q(){e(p()),x=[],y=[]}if("string"!=typeof a)throw"Input must be a string";var s=a.length,t=b.length,u=c.length,v=d.length,w=r(e);i=0;var x=[],y=[],z=[],A=0;if(!a)return p();if(g||g!==!1&&a.indexOf(h)===-1){for(var B=a.split(c),C=0;C=f)return x=x.slice(0,f),p(!0)}}return p()}for(var D=a.indexOf(b,i),E=a.indexOf(c,i),F=new RegExp(h+h,"g");;)if(a[i]!==h)if(d&&0===z.length&&a.substr(i,v)===d){if(E===-1)return p();i=E+u,E=a.indexOf(c,i),D=a.indexOf(b,i)}else if(D!==-1&&(D=f)return p(!0)}else{var G=i;for(i++;;){var G=a.indexOf(h,G+1);if(G===-1)return l||y.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:x.length,index:i}),n();if(G===s-1){var H=a.substring(i,G).replace(F,h);return n(H)}if(a[G+1]!==h){if(a[G+1]===b){z.push(a.substring(i,G).replace(F,h)),i=G+1+t,D=a.indexOf(b,i),E=a.indexOf(c,i);break}if(a.substr(G+1,u)===c){if(z.push(a.substring(i,G).replace(F,h)),o(G+1+u),D=a.indexOf(b,i),w&&(q(),j))return p();if(f&&x.length>=f)return p(!0);break}}else G++}}return n()},this.abort=function(){j=!0},this.getCharIndex=function(){return i}}function j(){var a=document.getElementsByTagName("script");return a.length?a[a.length-1].src:""}function k(){if(!z.WORKERS_SUPPORTED)return!1;if(!w&&null===z.SCRIPT_PATH)throw new Error("Script path cannot be determined automatically when Papa Parse is loaded asynchronously. You need to set Papa.SCRIPT_PATH manually.");var a=z.SCRIPT_PATH||s;a+=(a.indexOf("?")!==-1?"&":"?")+"papaworker";var b=new t.Worker(a);return b.onmessage=l,b.id=y++,x[b.id]=b,b}function l(a){var b=a.data,c=x[b.workerId],d=!1;if(b.error)c.userError(b.error,b.file);else if(b.results&&b.results.data){var e=function(){d=!0,m(b.workerId,{data:[],errors:[],meta:{aborted:!0}})},f={abort:e,pause:n,resume:n};if(r(c.userStep)){for(var g=0;g +
+ + +

Rows

+
+ + +
+ +
+
+ +
+ + \ No newline at end of file diff --git a/views/layouts/main.handlebars b/views/layouts/main.handlebars new file mode 100644 index 0000000..c3edb81 --- /dev/null +++ b/views/layouts/main.handlebars @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + {{{body}}} + + \ No newline at end of file