what's the high level reason we need to combine two template languages here? assume something to do with javascript context? i find this pretty confusing/would like to avoid if there's another way to do it.