in lambda/Message_Archiver/archiver/lib/renderer.js [58:81]
getCompilers(key, content) {
if (!content) return [];
if (this.cacheCompilers[key]) {
return this.cacheCompilers[key];
}
// {pieceType: APNS.Title, html: 'blob', defaultSubs: '{json}'}
const compilers = content.filter(piece => piece.html).map((piece, i) => {
return {
pieceType: piece.pieceType,
pieceCompiler: Handlebars.compile(piece.html),
defaultSubs: piece.defaultSubs,
channel: piece.channel
};
});
this.cacheCompilers[key] = compilers;
return compilers;
}