Woa there! Why would JavaScript have `with` if you weren't intended to use it‽ How about:
let applyTemplate = template => object => {
with(object) {
return eval("`"+template+"`");
}
}