Use Savant3 instead of smarty, move templates elsewhere.