This is for legacy use and so we should probably remove it - templates should get dicts not objects