Separate front, back, and root templates