Add primitive template injection.