index.js
function compileEjs(pathname, contentBuffer) {
	state.data.ejse = EjsElectron
	state.options.filename = pathname

    let contentString = contentBuffer.toString()
    let compiledEjs = ejs.render(contentString, state.data, state.options)

    return new Buffer(compiledEjs)
}
function compileEjs(pathname, contentBuffer) {
	state.data.ejse = EjsElectron
	state.options.filename = pathname

    let contentString = contentBuffer.toString()
    let compiledEjs = ejs.render(contentString, state.data, state.options)

    return new Buffer(compiledEjs)
}
Helper Functions