Split index and base templates