add transclusion function to compiler