/** File which renders the edit form for the posts and processes * the post data generated by edit forms. * * @type {Promise|*} */ const Promise = require('promise'); const qs = require('querystring'); const sql = require('../utils/sql'); /** * Displays a single row in the posts view * @param result * @param post */ var renderPostRow = function(result, post) { return new Promise(function(resolve, reject) { result.write("
Category # | Name | Header Picture | Date | Edit | "); result.write("