#1968 compiled interpolation

pull for #1968 which adds compiled templates