move templates/ into core/