index.js
/**
	 * Render a template file
	 *
	 * @param {string} template Path of the template file being rendered, relative to views/
	 * @param {object} data Object of data to pass to the template
	 */
Render a template file
@param {string} template Path of the template file being rendered, relative to views
@param {object} data Object of data to pass to the template
Render a template file @param { string } template Path of the template file being rendered relative to views @param { object } data Object of data to pass to the template
async render(template, data) {
		return new Promise(resolve => {
			this.engine.render(template, data, (error, response) => {
				if (error) {
					resolve(new SaplingError(error));
				}
				resolve(response);
			});
		});
	}
async render ( template , data ) { return new Promise ( resolve => { this . engine . render ( template , data , ( error , response ) => { if ( error ) { resolve ( new SaplingError ( error ) ) ; } resolve ( response ) ; } ) ; } ) ; }
Render a template file
 @param {string} template Path of the template file being rendered, relative to views
 @param {object} data Object of data to pass to the template
Render a template file @param { string } template Path of the template file being rendered relative to views @param { object } data Object of data to pass to the template