code: def format_scheme(scheme, slug):
      
      scheme['scheme-name'] = scheme.pop('scheme')
      scheme['scheme-author'] = scheme.pop('author')
      scheme['scheme-slug'] = slug
      bases = ['base{:02X}'.format(x) for x in range(0, 16)]
      for base in bases:
          scheme['{}-hex'.format(base)] = scheme.pop(base)
          scheme['{}-hex-r'.format(base)] = scheme['{}-hex'.format(base)][0:2]
          scheme['{}-hex-g'.format(base)] = scheme['{}-hex'.format(base)][2:4]
          scheme['{}-hex-b'.format(base)] = scheme['{}-hex'.format(base)][4:6]
  
          scheme['{}-rgb-r'.format(base)] = str(
              int(scheme['{}-hex-r'.format(base)], 16))
          scheme['{}-rgb-g'.format(base)] = str(
              int(scheme['{}-hex-g'.format(base)], 16))
          scheme['{}-rgb-b'.format(base)] = str(
              int(scheme['{}-hex-b'.format(base)], 16))
  
          scheme['{}-dec-r'.format(base)] = str(
              int(scheme['{}-rgb-r'.format(base)]) / 255)
          scheme['{}-dec-g'.format(base)] = str(
              int(scheme['{}-rgb-g'.format(base)]) / 255)
          scheme['{}-dec-b'.format(base)] = str(
              int(scheme['{}-rgb-b'.format(base)]) / 255)
docs: Change $scheme so it can be applied to a template.