docs: def _datetime_view(
      request,
      template,
      dt,
      timeslot_factory=None,
      items=None,
      params=None
  ):
      '''
      Build a time slot grid representation for the given datetime ``dt``. See
      utils.create_timeslot_table documentation for items and params.
  
      Context parameters:
  
      ``day``
          the specified datetime value (dt)
  
      ``next_day``
          day + 1 day
  
      ``prev_day``
          day - 1 day
  
      ``timeslots``
          time slot grid of (time, cells) rows
  
      '''
      timeslot_factory = timeslot_factory or utils.create_timeslot_table
      params = params or {}
  
      return render(request, template, {
          'day':       dt,
          'next_day':  dt + timedelta(days=+1),
          'prev_day':  dt + timedelta(days=-1),
          'timeslots': timeslot_factory(dt, items, **params)
      })