make template external